var Tc=e=>{throw TypeError(e)};var vl=(e,t,n)=>t.has(e)||Tc("Cannot "+n);var N=(e,t,n)=>(vl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Tc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(vl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(vl(e,t,"access private method"),n);var ys=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return N(e,t,r)}});function V0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zf={exports:{}},Ii={},Df={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ls=Symbol.for("react.element"),H0=Symbol.for("react.portal"),W0=Symbol.for("react.fragment"),Q0=Symbol.for("react.strict_mode"),K0=Symbol.for("react.profiler"),Y0=Symbol.for("react.provider"),G0=Symbol.for("react.context"),q0=Symbol.for("react.forward_ref"),X0=Symbol.for("react.suspense"),Z0=Symbol.for("react.memo"),J0=Symbol.for("react.lazy"),Rc=Symbol.iterator;function eg(e){return e===null||typeof e!="object"?null:(e=Rc&&e[Rc]||e["@@iterator"],typeof e=="function"?e:null)}var Ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$f=Object.assign,Bf={};function ro(e,t,n){this.props=e,this.context=t,this.refs=Bf,this.updater=n||Ff}ro.prototype.isReactComponent={};ro.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uf(){}Uf.prototype=ro.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=Bf,this.updater=n||Ff}var uu=au.prototype=new Uf;uu.constructor=au;$f(uu,ro.prototype);uu.isPureReactComponent=!0;var _c=Array.isArray,Vf=Object.prototype.hasOwnProperty,cu={current:null},Hf={key:!0,ref:!0,__self:!0,__source:!0};function Wf(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Vf.call(t,r)&&!Hf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,D=j[H];if(0>>1;Ho(me,L))jeo(ee,me)?(j[H]=ee,j[je]=L,H=je):(j[H]=me,j[X]=L,H=X);else if(jeo(ee,L))j[H]=ee,j[je]=L,H=je;else break e}}return T}function o(j,T){var L=j.sortIndex-T.sortIndex;return L!==0?L:j.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],c=[],d=1,p=null,g=3,f=!1,S=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(j){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=j)r(c),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(c)}}function b(j){if(y=!1,v(j),!S)if(n(a)!==null)S=!0,B(E);else{var T=n(c);T!==null&&V(b,T.startTime-j)}}function E(j,T){S=!1,y&&(y=!1,m(P),P=-1),f=!0;var L=g;try{for(v(T),p=n(a);p!==null&&(!(p.expirationTime>T)||j&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var D=H(p.expirationTime<=T);T=e.unstable_now(),typeof D=="function"?p.callback=D:p===n(a)&&r(a),v(T)}else r(a);p=n(a)}if(p!==null)var Y=!0;else{var X=n(c);X!==null&&V(b,X.startTime-T),Y=!1}return Y}finally{p=null,g=L,f=!1}}var k=!1,C=null,P=-1,A=5,M=-1;function $(){return!(e.unstable_now()-Mj||125H?(j.sortIndex=L,t(c,j),n(a)===null&&j===n(c)&&(y?(m(P),P=-1):y=!0,V(b,L-H))):(j.sortIndex=D,t(a,j),S||f||(S=!0,B(E))),j},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(j){var T=g;return function(){var L=g;g=T;try{return j.apply(this,arguments)}finally{g=L}}}})(Xf);qf.exports=Xf;var dg=qf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fg=x,Ze=dg;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,pg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oc={},Ac={};function hg(e){return Xl.call(Ac,e)?!0:Xl.call(Oc,e)?!1:pg.test(e)?Ac[e]=!0:(Oc[e]=!0,!1)}function mg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gg(e,t,n,r){if(t===null||typeof t>"u"||mg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function pu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fu,pu);Ne[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function hu(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var a=` `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eo(e):""}function vg(e){switch(e.tag){case 5:return Eo(e.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return e=bl(e.type,!1),e;case 11:return e=bl(e.type.render,!1),e;case 1:return e=bl(e.type,!0),e;default:return""}}function ta(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xr:return"Fragment";case yr:return"Portal";case Zl:return"Profiler";case mu:return"StrictMode";case Jl:return"Suspense";case ea:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ep:return(e.displayName||"Context")+".Consumer";case Jf:return(e._context.displayName||"Context")+".Provider";case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vu:return t=e.displayName||null,t!==null?t:ta(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return ta(e(t))}catch{}}return null}function yg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ta(t);case 8:return t===mu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function np(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xg(e){var t=np(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bs(e){e._valueTracker||(e._valueTracker=xg(e))}function rp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=np(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function na(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ic(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function op(e,t){t=t.checked,t!=null&&hu(e,"checked",t,!1)}function ra(e,t){op(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oa(e,t.type,n):t.hasOwnProperty("defaultValue")&&oa(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oa(e,t,n){(t!=="number"||ni(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function Rr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Do(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wg=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(e){wg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jo[t]=jo[e]})});function ap(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jo.hasOwnProperty(e)&&jo[e]?(""+t).trim():t+"px"}function up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ap(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bg=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function la(e,t){if(t){if(bg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function aa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ua=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,_r=null,Mr=null;function $c(e){if(e=cs(e)){if(typeof ca!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Bi(t),ca(e.stateNode,e.type,t))}}function cp(e){_r?Mr?Mr.push(e):Mr=[e]:_r=e}function dp(){if(_r){var e=_r,t=Mr;if(Mr=_r=null,$c(e),t)for(e=0;e>>=0,e===0?32:31-(Mg(e)/Og|0)|0}var Es=64,ks=4194304;function Co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Co(l):(s&=i,s!==0&&(r=Co(s)))}else i=n&~o,i!==0?r=Co(i):s!==0&&(r=Co(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function zg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=To),Gc=" ",qc=!1;function _p(e,t){switch(e){case"keyup":return dv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function pv(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(qc=!0,Gc);case"textInput":return e=t.data,e===Gc&&qc?null:e;default:return null}}function hv(e,t){if(wr)return e==="compositionend"||!Nu&&_p(e,t)?(e=Tp(),Hs=Eu=xn=null,wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ed(n)}}function Ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zp(){for(var e=window,t=ni();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ni(e.document)}return t}function ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ev(e){var t=zp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ip(n.ownerDocument.documentElement,n)){if(r!==null&&ju(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=td(n,s);var i=td(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,br=null,ga=null,_o=null,va=!1;function nd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;va||br==null||br!==ni(r)||(r=br,"selectionStart"in r&&ju(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_o&&Ho(_o,r)||(_o=r,r=ui(ga,"onSelect"),0kr||(e.current=Ea[kr],Ea[kr]=null,kr--)}function re(e,t){kr++,Ea[kr]=e.current,e.current=t}var _n={},Me=zn(_n),Be=zn(!1),nr=_n;function Gr(e,t){var n=e.type.contextTypes;if(!n)return _n;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function di(){ie(Be),ie(Me)}function ud(e,t,n){if(Me.current!==_n)throw Error(R(168));re(Me,t),re(Be,n)}function Qp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,yg(e)||"Unknown",o));return de({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,nr=Me.current,re(Me,e),re(Be,Be.current),!0}function cd(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Qp(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ie(Be),ie(Me),re(Me,e)):ie(Be),re(Be,n)}var Ft=null,Ui=!1,Ll=!1;function Kp(e){Ft===null?Ft=[e]:Ft.push(e)}function Lv(e){Ui=!0,Kp(e)}function Dn(){if(!Ll&&Ft!==null){Ll=!0;var e=0,t=te;try{var n=Ft;for(te=1;e>=i,o-=i,Bt=1<<32-xt(t)+o|n<P?(A=C,C=null):A=C.sibling;var M=g(m,C,v[P],b);if(M===null){C===null&&(C=A);break}e&&C&&M.alternate===null&&t(m,C),h=s(M,h,P),k===null?E=M:k.sibling=M,k=M,C=A}if(P===v.length)return n(m,C),ae&&Vn(m,P),E;if(C===null){for(;PP?(A=C,C=null):A=C.sibling;var $=g(m,C,M.value,b);if($===null){C===null&&(C=A);break}e&&C&&$.alternate===null&&t(m,C),h=s($,h,P),k===null?E=$:k.sibling=$,k=$,C=A}if(M.done)return n(m,C),ae&&Vn(m,P),E;if(C===null){for(;!M.done;P++,M=v.next())M=p(m,M.value,b),M!==null&&(h=s(M,h,P),k===null?E=M:k.sibling=M,k=M);return ae&&Vn(m,P),E}for(C=r(m,C);!M.done;P++,M=v.next())M=f(C,m,P,M.value,b),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?P:M.key),h=s(M,h,P),k===null?E=M:k.sibling=M,k=M);return e&&C.forEach(function(z){return t(m,z)}),ae&&Vn(m,P),E}function w(m,h,v,b){if(typeof v=="object"&&v!==null&&v.type===xr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ws:e:{for(var E=v.key,k=h;k!==null;){if(k.key===E){if(E=v.type,E===xr){if(k.tag===7){n(m,k.sibling),h=o(k,v.props.children),h.return=m,m=h;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===un&&pd(E)===k.type){n(m,k.sibling),h=o(k,v.props),h.ref=yo(m,k,v),h.return=m,m=h;break e}n(m,k);break}else t(m,k);k=k.sibling}v.type===xr?(h=tr(v.props.children,m.mode,b,v.key),h.return=m,m=h):(b=Zs(v.type,v.key,v.props,null,m.mode,b),b.ref=yo(m,h,v),b.return=m,m=b)}return i(m);case yr:e:{for(k=v.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Vl(v,m.mode,b),h.return=m,m=h}return i(m);case un:return k=v._init,w(m,h,k(v._payload),b)}if(ko(v))return S(m,h,v,b);if(po(v))return y(m,h,v,b);_s(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=Ul(v,m.mode,b),h.return=m,m=h),i(m)):n(m,h)}return w}var Xr=Xp(!0),Zp=Xp(!1),mi=zn(null),gi=null,jr=null,_u=null;function Mu(){_u=jr=gi=null}function Ou(e){var t=mi.current;ie(mi),e._currentValue=t}function Na(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){gi=e,_u=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(_u!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(gi===null)throw Error(R(308));jr=e,gi.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var Qn=null;function Au(e){Qn===null?Qn=[e]:Qn.push(e)}function Jp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Au(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qt(e,n)}return o=r.interleaved,o===null?(t.next=t,Au(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qt(e,n)}function Qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function hd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vi(e,t,n,r){var o=e.updateQueue;cn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,i===null?s=c:i.next=c,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,d=c=a=null,l=s;do{var g=l.lane,f=l.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(g=t,f=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){p=S.call(f,p,g);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,g=typeof S=="function"?S.call(f,p,g):S,g==null)break e;p=de({},p,g);break e;case 2:cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else f={eventTime:f,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=f,a=p):d=d.next=f,i|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);sr|=i,e.lanes=i,e.memoizedState=p}}function md(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{te=n,zl.transition=r}}function vh(){return at().memoizedState}function Fv(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yh(e))xh(t,n);else if(n=Jp(e,t,n,r),n!==null){var o=Le();wt(n,e,r,o),wh(n,t,r)}}function $v(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yh(e))xh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,bt(l,i)){var a=t.interleaved;a===null?(o.next=o,Au(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Jp(e,t,o,r),n!==null&&(o=Le(),wt(n,e,r,o),wh(n,t,r))}}function yh(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function xh(e,t){Mo=xi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var wi={readContext:lt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},Bv={readContext:lt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:vd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4194308,4,fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ys(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fv.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:gd,useDebugValue:Vu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=gd(!1),t=e[0];return e=Dv.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Nt();if(ae){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Se===null)throw Error(R(349));or&30||oh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,vd(ih.bind(null,r,s,e),[e]),r.flags|=2048,Zo(9,sh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Se.identifierPrefix;if(ae){var n=Ut,r=Bt;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Rt]=t,e[Ko]=r,Rh(e,t,!1,!1),t.stateNode=e;e:{switch(i=aa(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oeo&&(t.flags|=128,r=!0,xo(s,!1),t.lanes=4194304)}else{if(!r)if(e=yi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ae)return Te(t),null}else 2*he()-s.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,xo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=he(),t.sibling=null,n=ue.current,re(ue,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Gv(e,t){switch(Tu(t),t.tag){case 1:return Ue(t.type)&&di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ie(Be),ie(Me),Du(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zu(t),null;case 13:if(ie(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ue),null;case 4:return Zr(),null;case 10:return Ou(t.type._context),null;case 22:case 23:return Gu(),null;case 24:return null;default:return null}}var Os=!1,_e=!1,qv=typeof WeakSet=="function"?WeakSet:Set,I=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function La(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Pd=!1;function Xv(e,t){if(ya=li,e=zp(),ju(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,c=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++c===o&&(l=i),g===s&&++d===r&&(a=i),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xa={focusedElem:e,selectionRange:n},li=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,w=S.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:ht(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(b){pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return S=Pd,Pd=!1,S}function Oo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&La(t,n,s)}o=o.next}while(o!==r)}}function Wi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Oh(e){var t=e.alternate;t!==null&&(e.alternate=null,Oh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Ko],delete t[Sa],delete t[Ov],delete t[Av])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ah(e){return e.tag===5||e.tag===3||e.tag===4}function Td(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ci));else if(r!==4&&(e=e.child,e!==null))for(za(e,t,n),e=e.sibling;e!==null;)za(e,t,n),e=e.sibling}function Da(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Da(e,t,n),e=e.sibling;e!==null;)Da(e,t,n),e=e.sibling}var ke=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Lh(e,t,n),n=n.sibling}function Lh(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(zi,n)}catch{}switch(n.tag){case 5:_e||Pr(n,t);case 6:var r=ke,o=vt;ke=null,on(e,t,n),ke=r,vt=o,ke!==null&&(vt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(vt?(e=ke,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),Uo(e)):Al(ke,n.stateNode));break;case 4:r=ke,o=vt,ke=n.stateNode.containerInfo,vt=!0,on(e,t,n),ke=r,vt=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&La(n,t,i),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!_e&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pe(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,on(e,t,n),_e=r):on(e,t,n);break;default:on(e,t,n)}}function Rd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qv),t.forEach(function(r){var o=iy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jv(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Ei=0,J&6)throw Error(R(331));var o=J;for(J|=4,I=e.current;I!==null;){var s=I,i=s.child;if(I.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ahe()-Ku?er(e,0):Qu|=n),Ve(e,t)}function Vh(e,t){t===0&&(e.mode&1?(t=ks,ks<<=1,!(ks&130023424)&&(ks=4194304)):t=1);var n=Le();e=Qt(e,t),e!==null&&(as(e,t,n),Ve(e,n))}function sy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vh(e,n)}function iy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Vh(e,n)}var Hh;Hh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,Kv(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ae&&t.flags&1048576&&Yp(t,hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var o=Gr(t,Me.current);Ar(t,n),o=$u(null,t,r,e,o,n);var s=Bu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(s=!0,fi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lu(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Pa(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,ae&&s&&Pu(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ay(r),e=ht(r,e),o){case 0:t=Ra(null,t,r,e,n);break e;case 1:t=Cd(null,t,r,e,n);break e;case 11:t=Ed(null,t,r,e,n);break e;case 14:t=kd(null,t,r,ht(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Ra(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Cd(e,t,r,o,n);case 3:e:{if(jh(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,o=s.element,eh(e,t),vi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Jr(Error(R(423)),t),t=Nd(e,t,r,n,o);break e}else if(r!==o){o=Jr(Error(R(424)),t),t=Nd(e,t,r,n,o);break e}else for(Ge=Cn(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,yt=null,n=Zp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qr(),r===o){t=Kt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return th(t),e===null&&Ca(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,wa(r,o)?i=null:s!==null&&wa(r,s)&&(t.flags|=32),Nh(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&Ca(t),null;case 13:return Ph(e,t,n);case 4:return Iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Ed(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,re(mi,r._currentValue),r._currentValue=i,s!==null)if(bt(s.value,i)){if(s.children===o.children&&!Be.current){t=Kt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Vt(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Na(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(R(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Na(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ar(t,n),o=lt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),kd(e,t,r,o,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Gs(e,t),t.tag=1,Ue(r)?(e=!0,fi(t)):e=!1,Ar(t,n),bh(t,r,o),Pa(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Th(e,t,n);case 22:return Ch(e,t,n)}throw Error(R(156,t.tag))};function Wh(e,t){return yp(e,t)}function ly(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new ly(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ay(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gu)return 11;if(e===vu)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zs(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Xu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xr:return tr(n.children,o,s,t);case mu:i=8,o|=8;break;case Zl:return e=st(12,n,t,o|2),e.elementType=Zl,e.lanes=s,e;case Jl:return e=st(13,n,t,o),e.elementType=Jl,e.lanes=s,e;case ea:return e=st(19,n,t,o),e.elementType=ea,e.lanes=s,e;case tp:return Ki(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jf:i=10;break e;case ep:i=9;break e;case gu:i=11;break e;case vu:i=14;break e;case un:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function tr(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=st(22,e,r,t),e.elementType=tp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Vl(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zu(e,t,n,r,o,s,i,l,a){return e=new uy(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lu(s),e}function cy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gh)}catch(e){console.error(e)}}Gh(),Gf.exports=Je;var fs=Gf.exports;const qh=If(fs);var Xh,Dd=fs;Xh=Dd.createRoot,Dd.hydrateRoot;const my=1,gy=1e6;let Hl=0;function vy(){return Hl=(Hl+1)%Number.MAX_SAFE_INTEGER,Hl.toString()}const Wl=new Map,Fd=e=>{if(Wl.has(e))return;const t=setTimeout(()=>{Wl.delete(e),Io({type:"REMOVE_TOAST",toastId:e})},gy);Wl.set(e,t)},yy=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,my)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Fd(n):e.toasts.forEach(r=>{Fd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Js=[];let ei={toasts:[]};function Io(e){ei=yy(ei,e),Js.forEach(t=>{t(ei)})}function xy({...e}){const t=vy(),n=o=>Io({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Io({type:"DISMISS_TOAST",toastId:t});return Io({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function wy(){const[e,t]=x.useState(ei);return x.useEffect(()=>(Js.push(t),()=>{const n=Js.indexOf(t);n>-1&&Js.splice(n,1)}),[e]),{...e,toast:xy,dismiss:n=>Io({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function $d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nc(...e){return t=>{let n=!1;const r=e.map(o=>{const s=$d(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...S}=p,y=((m=g==null?void 0:g[e])==null?void 0:m[a])||l,w=x.useMemo(()=>S,Object.values(S));return u.jsx(y.Provider,{value:w,children:f})};c.displayName=s+"Provider";function d(p,g){var y;const f=((y=g==null?void 0:g[e])==null?void 0:y[a])||l,S=x.useContext(f);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>x.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,by(o,...t)]}function by(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:c})=>{const p=a(s)[`__scope${c}`];return{...l,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Bd(e){const t=Sy(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,l=x.Children.toArray(s),a=l.find(ky);if(a){const c=a.props.children,d=l.map(p=>p===a?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...i,ref:o,children:x.isValidElement(c)?x.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Sy(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=Ny(o),l=Cy(s,o.props);return o.type!==x.Fragment&&(l.ref=r?nc(r,i):i),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ey=Symbol("radix.slottable");function ky(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ey}function Cy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ny(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jy(e){const t=e+"CollectionProvider",[n,r]=Zi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:w,children:m}=y,h=_.useRef(null),v=_.useRef(new Map).current;return u.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};i.displayName=t;const l=e+"CollectionSlot",a=Bd(l),c=_.forwardRef((y,w)=>{const{scope:m,children:h}=y,v=s(l,m),b=St(w,v.collectionRef);return u.jsx(a,{ref:b,children:h})});c.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=Bd(d),f=_.forwardRef((y,w)=>{const{scope:m,children:h,...v}=y,b=_.useRef(null),E=St(w,b),k=s(d,m);return _.useEffect(()=>(k.itemMap.set(b,{ref:b,...v}),()=>void k.itemMap.delete(b))),u.jsx(g,{[p]:"",ref:E,children:h})});f.displayName=d;function S(y){const w=s(e+"CollectionConsumer",y);return _.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((k,C)=>v.indexOf(k.ref.current)-v.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},S,r]}function Py(e){const t=Ty(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,l=x.Children.toArray(s),a=l.find(_y);if(a){const c=a.props.children,d=l.map(p=>p===a?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...i,ref:o,children:x.isValidElement(c)?x.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ty(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=Oy(o),l=My(s,o.props);return o.type!==x.Fragment&&(l.ref=r?nc(r,i):i),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ry=Symbol("radix.slottable");function _y(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ry}function My(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Oy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=Ay.reduce((e,t)=>{const n=Py(`Primitive.${t}`),r=x.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zh(e,t){e&&fs.flushSync(()=>e.dispatchEvent(t))}function Mn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ly(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Iy="DismissableLayer",Va="dismissableLayer.update",zy="dismissableLayer.pointerDownOutside",Dy="dismissableLayer.focusOutside",Ud,Jh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,c=x.useContext(Jh),[d,p]=x.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),S=St(t,C=>p(C)),y=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(w),h=d?y.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,b=h>=m,E=$y(C=>{const P=C.target,A=[...c.branches].some(M=>M.contains(P));!b||A||(o==null||o(C),i==null||i(C),C.defaultPrevented||l==null||l())},g),k=By(C=>{const P=C.target;[...c.branches].some(M=>M.contains(P))||(s==null||s(C),i==null||i(C),C.defaultPrevented||l==null||l())},g);return Ly(C=>{h===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},g),x.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Vd(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ud)}},[d,g,n,c]),x.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Vd())},[d,c]),x.useEffect(()=>{const C=()=>f({});return document.addEventListener(Va,C),()=>document.removeEventListener(Va,C)},[]),u.jsx(We.div,{...a,ref:S,style:{pointerEvents:v?b?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});rc.displayName=Iy;var Fy="DismissableLayerBranch",em=x.forwardRef((e,t)=>{const n=x.useContext(Jh),r=x.useRef(null),o=St(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(We.div,{...e,ref:o})});em.displayName=Fy;function $y(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){tm(zy,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function By(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!r.current&&tm(Dy,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vd(){const e=new CustomEvent(Va);document.dispatchEvent(e)}function tm(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zh(o,s):o.dispatchEvent(s)}var Uy=rc,Vy=em,On=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Hy="Portal",nm=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=x.useState(!1);On(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?qh.createPortal(u.jsx(We.div,{...r,ref:t}),i):null});nm.displayName=Hy;function Wy(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var oc=e=>{const{present:t,children:n}=e,r=Qy(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=St(r.ref,Ky(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:s}):null};oc.displayName="Presence";function Qy(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),i=e?"mounted":"unmounted",[l,a]=Wy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=Is(r.current);s.current=l==="mounted"?c:"none"},[l]),On(()=>{const c=r.current,d=o.current;if(d!==e){const g=s.current,f=Is(c);e?a("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?a("UNMOUNT"):a(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),On(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=f=>{const y=Is(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&y&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=f=>{f.target===t&&(s.current=Is(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Is(e){return(e==null?void 0:e.animationName)||"none"}function Ky(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Yy=Kf[" useInsertionEffect ".trim().toString()]||On;function Gy({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=qy({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const c=x.useCallback(d=>{var p;if(l){const g=Xy(d)?d(e):d;g!==e&&((p=i.current)==null||p.call(i,g))}else s(d)},[l,e,s,i]);return[a,c]}function qy({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),s=x.useRef(t);return Yy(()=>{s.current=t},[t]),x.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Xy(e){return typeof e=="function"}var Zy=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Jy="VisuallyHidden",Ji=x.forwardRef((e,t)=>u.jsx(We.span,{...e,ref:t,style:{...Zy,...e.style}}));Ji.displayName=Jy;var ex=Ji,sc="ToastProvider",[ic,tx,nx]=jy("Toast"),[rm]=Zi("Toast",[nx]),[rx,el]=rm(sc),om=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,a]=x.useState(null),[c,d]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${sc}\`. Expected non-empty \`string\`.`),u.jsx(ic.Provider,{scope:t,children:u.jsx(rx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:i})})};om.displayName=sc;var sm="ToastViewport",ox=["F8"],Ha="toast.viewportPause",Wa="toast.viewportResume",im=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ox,label:o="Notifications ({hotkey})",...s}=e,i=el(sm,n),l=tx(n),a=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),g=St(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(b=>m[b]||m.code===b)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,m=p.current;if(S&&w&&m){const h=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Ha);m.dispatchEvent(k),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Wa);m.dispatchEvent(k),i.isClosePausedRef.current=!1}},b=k=>{!w.contains(k.relatedTarget)&&v()},E=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",b),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",E),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",b),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[S,i.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const h=l().map(v=>{const b=v.ref.current,E=[b,...vx(b)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return x.useEffect(()=>{const w=p.current;if(w){const m=h=>{var E,k,C;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const P=document.activeElement,A=h.shiftKey;if(h.target===w&&A){(E=c.current)==null||E.focus();return}const z=y({tabbingDirection:A?"backwards":"forwards"}),K=z.findIndex(O=>O===P);Ql(z.slice(K+1))?h.preventDefault():A?(k=c.current)==null||k.focus():(C=d.current)==null||C.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,y]),u.jsxs(Vy,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&u.jsx(Qa,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Ql(w)}}),u.jsx(ic.Slot,{scope:n,children:u.jsx(We.ol,{tabIndex:-1,...s,ref:g})}),S&&u.jsx(Qa,{ref:d,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Ql(w)}})]})});im.displayName=sm;var lm="ToastFocusProxy",Qa=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=el(lm,n);return u.jsx(Ji,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const l=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(l))&&r()}})});Qa.displayName=lm;var ps="Toast",sx="toast.swipeStart",ix="toast.swipeMove",lx="toast.swipeCancel",ax="toast.swipeEnd",am=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l,a]=Gy({prop:r,defaultProp:o??!0,onChange:s,caller:ps});return u.jsx(oc,{present:n||l,children:u.jsx(dx,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:Mn(e.onPause),onResume:Mn(e.onResume),onSwipeStart:ye(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});am.displayName=ps;var[ux,cx]=rm(ps,{onClose(){}}),dx=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:c,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...S}=e,y=el(ps,n),[w,m]=x.useState(null),h=St(t,O=>m(O)),v=x.useRef(null),b=x.useRef(null),E=o||y.duration,k=x.useRef(0),C=x.useRef(E),P=x.useRef(0),{onToastAdd:A,onToastRemove:M}=y,$=Mn(()=>{var q;(w==null?void 0:w.contains(document.activeElement))&&((q=y.viewport)==null||q.focus()),i()}),z=x.useCallback(O=>{!O||O===1/0||(window.clearTimeout(P.current),k.current=new Date().getTime(),P.current=window.setTimeout($,O))},[$]);x.useEffect(()=>{const O=y.viewport;if(O){const q=()=>{z(C.current),c==null||c()},B=()=>{const V=new Date().getTime()-k.current;C.current=C.current-V,window.clearTimeout(P.current),a==null||a()};return O.addEventListener(Ha,B),O.addEventListener(Wa,q),()=>{O.removeEventListener(Ha,B),O.removeEventListener(Wa,q)}}},[y.viewport,E,a,c,z]),x.useEffect(()=>{s&&!y.isClosePausedRef.current&&z(E)},[s,E,y.isClosePausedRef,z]),x.useEffect(()=>(A(),()=>M()),[A,M]);const K=x.useMemo(()=>w?mm(w):null,[w]);return y.viewport?u.jsxs(u.Fragment,{children:[K&&u.jsx(fx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:K}),u.jsx(ux,{scope:n,onClose:$,children:fs.createPortal(u.jsx(ic.ItemSlot,{scope:n,children:u.jsx(Uy,{asChild:!0,onEscapeKeyDown:ye(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(We.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ye(e.onPointerDown,O=>{O.button===0&&(v.current={x:O.clientX,y:O.clientY})}),onPointerMove:ye(e.onPointerMove,O=>{if(!v.current)return;const q=O.clientX-v.current.x,B=O.clientY-v.current.y,V=!!b.current,j=["left","right"].includes(y.swipeDirection),T=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=j?T(0,q):0,H=j?0:T(0,B),D=O.pointerType==="touch"?10:2,Y={x:L,y:H},X={originalEvent:O,delta:Y};V?(b.current=Y,zs(ix,p,X,{discrete:!1})):Hd(Y,y.swipeDirection,D)?(b.current=Y,zs(sx,d,X,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(q)>D||Math.abs(B)>D)&&(v.current=null)}),onPointerUp:ye(e.onPointerUp,O=>{const q=b.current,B=O.target;if(B.hasPointerCapture(O.pointerId)&&B.releasePointerCapture(O.pointerId),b.current=null,v.current=null,q){const V=O.currentTarget,j={originalEvent:O,delta:q};Hd(q,y.swipeDirection,y.swipeThreshold)?zs(ax,f,j,{discrete:!0}):zs(lx,g,j,{discrete:!0}),V.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),fx=e=>{const{__scopeToast:t,children:n,...r}=e,o=el(ps,t),[s,i]=x.useState(!1),[l,a]=x.useState(!1);return mx(()=>i(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:u.jsx(nm,{asChild:!0,children:u.jsx(Ji,{...r,children:s&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},px="ToastTitle",um=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(We.div,{...r,ref:t})});um.displayName=px;var hx="ToastDescription",cm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(We.div,{...r,ref:t})});cm.displayName=hx;var dm="ToastAction",fm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(hm,{altText:n,asChild:!0,children:u.jsx(lc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dm}\`. Expected non-empty \`string\`.`),null)});fm.displayName=dm;var pm="ToastClose",lc=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=cx(pm,n);return u.jsx(hm,{asChild:!0,children:u.jsx(We.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});lc.displayName=pm;var hm=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function mm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),gx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...mm(r))}}),t}function zs(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zh(o,s):o.dispatchEvent(s)}var Hd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function mx(e=()=>{}){const t=Mn(e);On(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function gx(e){return e.nodeType===e.ELEMENT_NODE}function vx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ql(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var yx=om,gm=im,vm=am,ym=um,xm=cm,wm=fm,bm=lc;function Sm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Qd=Em,xx=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],p=s==null?void 0:s[c];if(d===null)return null;const g=Wd(d)||Wd(p);return o[c][g]}),l=n&&Object.entries(n).reduce((c,d)=>{let[p,g]=d;return g===void 0||(c[p]=g),c},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(S=>{let[y,w]=S;return Array.isArray(w)?w.includes({...s,...l}[y]):{...s,...l}[y]===w})?[...c,p,g]:c},[]);return Qd(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),km=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var bx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>x.createElement("svg",{ref:a,...bx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:km("lucide",o),...l},[...i.map(([c,d])=>x.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement(Sx,{ref:s,iconNode:t,className:km(`lucide-${wx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ex=Q("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kx=Q("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cm=Q("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nm=Q("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jm=Q("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cx=Q("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ka=Q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ni=Q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ji=Q("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nx=Q("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const es=Q("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pm=Q("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jx=Q("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Px=Q("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tx=Q("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rx=Q("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tl=Q("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ac=Q("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _x=Q("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mx=Q("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=Q("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ax=Q("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pi=Q("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uc=Q("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=Q("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kd=Q("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=Q("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zx=Q("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=Q("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fx=Q("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $x=Q("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nl=Q("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bx=Q("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ux=Q("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const io=Q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vx=Q("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hx=Q("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wx=Q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qx=Q("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kx=Q("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tm=Q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cc="-",Yx=e=>{const t=qx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(cc);return l[0]===""&&l.length!==1&&l.shift(),Rm(l,t)||Gx(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},Rm=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(cc);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Yd=/^\[(.+)\]$/,Gx=e=>{if(Yd.test(e)){const t=Yd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ya(i,r,s,t)}),r},Ya=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Gd(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Xx(o)){Ya(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ya(i,Gd(t,s),n,r)})})},Gd=(e,t)=>{let n=e;return t.split(cc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Xx=e=>e.isThemeGetter,Zx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,Jx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},_m="!",e1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let c=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:i}):i},t1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},n1=e=>({cache:Jx(e.cacheSize),parseClassName:e1(e),...Yx(e)}),r1=/\s+/,o1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(r1);let l="";for(let a=i.length-1;a>=0;a-=1){const c=i[a],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(c);let S=!!f,y=r(S?g.substring(0,f):g);if(!y){if(!S){l=c+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=c+(l.length>0?" "+l:l);continue}S=!1}const w=t1(d).join(":"),m=p?w+_m:w,h=m+y;if(s.includes(h))continue;s.push(h);const v=o(y,S);for(let b=0;b0?" "+l:l)}return l};function s1(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=n1(c),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const c=r(a);if(c)return c;const d=o1(a,n);return o(a,d),d}return function(){return s(s1.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Om=/^\[(?:([a-z-]+):)?(.+)\]$/i,l1=/^\d+\/\d+$/,a1=new Set(["px","full","screen"]),u1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,d1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,f1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>Ir(e)||a1.has(e)||l1.test(e),sn=e=>lo(e,"length",b1),Ir=e=>!!e&&!Number.isNaN(Number(e)),Kl=e=>lo(e,"number",Ir),bo=e=>!!e&&Number.isInteger(Number(e)),h1=e=>e.endsWith("%")&&Ir(e.slice(0,-1)),W=e=>Om.test(e),ln=e=>u1.test(e),m1=new Set(["length","size","percentage"]),g1=e=>lo(e,m1,Am),v1=e=>lo(e,"position",Am),y1=new Set(["image","url"]),x1=e=>lo(e,y1,E1),w1=e=>lo(e,"",S1),So=()=>!0,lo=(e,t,n)=>{const r=Om.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},b1=e=>c1.test(e)&&!d1.test(e),Am=()=>!1,S1=e=>f1.test(e),E1=e=>p1.test(e),k1=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),s=oe("borderRadius"),i=oe("borderSpacing"),l=oe("borderWidth"),a=oe("contrast"),c=oe("grayscale"),d=oe("hueRotate"),p=oe("invert"),g=oe("gap"),f=oe("gradientColorStops"),S=oe("gradientColorStopPositions"),y=oe("inset"),w=oe("margin"),m=oe("opacity"),h=oe("padding"),v=oe("saturate"),b=oe("scale"),E=oe("sepia"),k=oe("skew"),C=oe("space"),P=oe("translate"),A=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],z=()=>[W,t],K=()=>["",It,sn],O=()=>["auto",Ir,W],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ir,W];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[It,sn],blur:["none","",ln,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",ln,W],borderSpacing:z(),borderWidth:K(),contrast:H(),grayscale:T(),hueRotate:H(),invert:T(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[h1,sn],inset:$(),margin:$(),opacity:H(),padding:z(),saturate:H(),scale:H(),sepia:T(),skew:H(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),W]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",bo,W]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",bo,W]},W]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[bo,W]},W]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Kl]}],"font-family":[{font:[So]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ir,Kl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,sn]}],"underline-offset":[{"underline-offset":["auto",It,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),v1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},x1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[It,W]}],"outline-w":[{outline:[It,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[It,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,w1]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",ln,W]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[bo,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,sn,Kl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},C1=i1(k1);function cr(...e){return C1(Em(e))}const N1=yx,Lm=x.forwardRef(({className:e,...t},n)=>u.jsx(gm,{ref:n,className:cr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Lm.displayName=gm.displayName;const j1=xx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Im=x.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(vm,{ref:r,className:cr(j1({variant:t}),e),...n}));Im.displayName=vm.displayName;const P1=x.forwardRef(({className:e,...t},n)=>u.jsx(wm,{ref:n,className:cr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));P1.displayName=wm.displayName;const zm=x.forwardRef(({className:e,...t},n)=>u.jsx(bm,{ref:n,className:cr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Tm,{className:"h-4 w-4"})}));zm.displayName=bm.displayName;const Dm=x.forwardRef(({className:e,...t},n)=>u.jsx(ym,{ref:n,className:cr("text-sm font-semibold",e),...t}));Dm.displayName=ym.displayName;const Fm=x.forwardRef(({className:e,...t},n)=>u.jsx(xm,{ref:n,className:cr("text-sm opacity-90",e),...t}));Fm.displayName=xm.displayName;function T1(){const{toasts:e}=wy();return u.jsxs(N1,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return u.jsxs(Im,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(Dm,{children:n}),r&&u.jsx(Fm,{children:r})]}),o,u.jsx(zm,{})]},t)}),u.jsx(Lm,{})]})}var qd=["light","dark"],R1="(prefers-color-scheme: dark)",_1=x.createContext(void 0),M1={setTheme:e=>{},themes:[]},O1=()=>{var e;return(e=x.useContext(_1))!=null?e:M1};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?qd.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(S,y=!1,w=!0)=>{let m=i?i[S]:S,h=y?S+"|| ''":`'${m}'`,v="";return o&&w&&!y&&qd.includes(S)&&(v+=`d.style.colorScheme = '${S}';`),n==="class"?y||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${R1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${c?"":"else{"+g(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var A1=e=>{switch(e){case"success":return z1;case"info":return F1;case"warning":return D1;case"error":return $1;default:return null}},L1=Array(12).fill(0),I1=({visible:e,className:t})=>_.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_.createElement("div",{className:"sonner-spinner"},L1.map((n,r)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),z1=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),D1=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),F1=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),$1=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),B1=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),U1=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ga=1,V1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ga++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async a=>{if(s=["resolve",a],_.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(W1(a)&&!a.ok){o=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){o=!1;let c=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async a=>{if(s=["reject",a],t.error!==void 0){o=!1;let c=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,c)=>i.then(()=>s[0]==="reject"?c(s[1]):a(s[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ga++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=new V1,H1=(e,t)=>{let n=(t==null?void 0:t.id)||Ga++;return De.addToast({title:e,...t,id:n}),n},W1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Q1=H1,K1=()=>De.toasts,Y1=()=>De.getActiveToasts(),G1=Object.assign(Q1,{success:De.success,info:De.info,warning:De.warning,error:De.error,custom:De.custom,message:De.message,promise:De.promise,dismiss:De.dismiss,loading:De.loading},{getHistory:K1,getToasts:Y1});function q1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}q1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Ds(e){return e.label!==void 0}var X1=3,Z1="32px",J1="16px",Xd=4e3,ew=356,tw=14,nw=20,rw=200;function pt(...e){return e.filter(Boolean).join(" ")}function ow(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var sw=e=>{var t,n,r,o,s,i,l,a,c,d,p;let{invert:g,toast:f,unstyled:S,interacting:y,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:b,expanded:E,removeToast:k,defaultRichColors:C,closeButton:P,style:A,cancelButtonStyle:M,actionButtonStyle:$,className:z="",descriptionClassName:K="",duration:O,position:q,gap:B,loadingIcon:V,expandByDefault:j,classNames:T,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:D}=e,[Y,X]=_.useState(null),[me,je]=_.useState(null),[ee,dr]=_.useState(!1),[Zt,Fn]=_.useState(!1),[Jt,fr]=_.useState(!1),[en,ms]=_.useState(!1),[pl,gs]=_.useState(!1),[hl,co]=_.useState(0),[pr,Ec]=_.useState(0),fo=_.useRef(f.duration||O||Xd),kc=_.useRef(null),$n=_.useRef(null),A0=v===0,L0=v+1<=m,tt=f.type,hr=f.dismissible!==!1,I0=f.className||"",z0=f.descriptionClassName||"",vs=_.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),D0=_.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:P},[f.closeButton,P]),Cc=_.useMemo(()=>f.duration||O||Xd,[f.duration,O]),ml=_.useRef(0),mr=_.useRef(0),Nc=_.useRef(0),gr=_.useRef(null),[F0,$0]=q.split("-"),jc=_.useMemo(()=>h.reduce((U,ne,le)=>le>=vs?U:U+ne.height,0),[h,vs]),Pc=U1(),B0=f.invert||g,gl=tt==="loading";mr.current=_.useMemo(()=>vs*B+jc,[vs,jc]),_.useEffect(()=>{fo.current=Cc},[Cc]),_.useEffect(()=>{dr(!0)},[]),_.useEffect(()=>{let U=$n.current;if(U){let ne=U.getBoundingClientRect().height;return Ec(ne),w(le=>[{toastId:f.id,height:ne,position:f.position},...le]),()=>w(le=>le.filter(ut=>ut.toastId!==f.id))}},[w,f.id]),_.useLayoutEffect(()=>{if(!ee)return;let U=$n.current,ne=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=ne,Ec(le),w(ut=>ut.find(ct=>ct.toastId===f.id)?ut.map(ct=>ct.toastId===f.id?{...ct,height:le}:ct):[{toastId:f.id,height:le,position:f.position},...ut])},[ee,f.title,f.description,w,f.id]);let tn=_.useCallback(()=>{Fn(!0),co(mr.current),w(U=>U.filter(ne=>ne.toastId!==f.id)),setTimeout(()=>{k(f)},rw)},[f,k,w,mr]);_.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return E||y||D&&Pc?(()=>{if(Nc.current{var ne;(ne=f.onAutoClose)==null||ne.call(f,f),tn()},fo.current)),()=>clearTimeout(U)},[E,y,f,tt,D,Pc,tn]),_.useEffect(()=>{f.delete&&tn()},[tn,f.delete]);function U0(){var U,ne,le;return L!=null&&L.loading?_.createElement("div",{className:pt(T==null?void 0:T.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},L.loading):V?_.createElement("div",{className:pt(T==null?void 0:T.loader,(ne=f==null?void 0:f.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":tt==="loading"},V):_.createElement(I1,{className:pt(T==null?void 0:T.loader,(le=f==null?void 0:f.classNames)==null?void 0:le.loader),visible:tt==="loading"})}return _.createElement("li",{tabIndex:0,ref:$n,className:pt(z,I0,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":ee,"data-promise":!!f.promise,"data-swiped":pl,"data-removed":Zt,"data-visible":L0,"data-y-position":F0,"data-x-position":$0,"data-index":v,"data-front":A0,"data-swiping":Jt,"data-dismissible":hr,"data-type":tt,"data-invert":B0,"data-swipe-out":en,"data-swipe-direction":me,"data-expanded":!!(E||j&&ee),style:{"--index":v,"--toasts-before":v,"--z-index":b.length-v,"--offset":`${Zt?hl:mr.current}px`,"--initial-height":j?"auto":`${pr}px`,...A,...f.style},onDragEnd:()=>{fr(!1),X(null),gr.current=null},onPointerDown:U=>{gl||!hr||(kc.current=new Date,co(mr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(fr(!0),gr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,ne,le,ut;if(en||!hr)return;gr.current=null;let ct=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((ne=$n.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((le=kc.current)==null?void 0:le.getTime()),dt=Y==="x"?ct:nn,rn=Math.abs(dt)/Bn;if(Math.abs(dt)>=nw||rn>.11){co(mr.current),(ut=f.onDismiss)==null||ut.call(f,f),je(Y==="x"?ct>0?"right":"left":nn>0?"down":"up"),tn(),ms(!0),gs(!1);return}fr(!1),X(null)},onPointerMove:U=>{var ne,le,ut,ct;if(!gr.current||!hr||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;let nn=U.clientY-gr.current.y,Bn=U.clientX-gr.current.x,dt=(le=e.swipeDirections)!=null?le:ow(q);!Y&&(Math.abs(Bn)>1||Math.abs(nn)>1)&&X(Math.abs(Bn)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};Y==="y"?(dt.includes("top")||dt.includes("bottom"))&&(dt.includes("top")&&nn<0||dt.includes("bottom")&&nn>0)&&(rn.y=nn):Y==="x"&&(dt.includes("left")||dt.includes("right"))&&(dt.includes("left")&&Bn<0||dt.includes("right")&&Bn>0)&&(rn.x=Bn),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&gs(!0),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ct=$n.current)==null||ct.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},D0&&!f.jsx?_.createElement("button",{"aria-label":H,"data-disabled":gl,"data-close-button":!0,onClick:gl||!hr?()=>{}:()=>{var U;tn(),(U=f.onDismiss)==null||U.call(f,f)},className:pt(T==null?void 0:T.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:B1):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:_.createElement(_.Fragment,null,tt||f.icon||f.promise?_.createElement("div",{"data-icon":"",className:pt(T==null?void 0:T.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||U0():null,f.type!=="loading"?f.icon||(L==null?void 0:L[tt])||A1(tt):null):null,_.createElement("div",{"data-content":"",className:pt(T==null?void 0:T.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},_.createElement("div",{"data-title":"",className:pt(T==null?void 0:T.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?_.createElement("div",{"data-description":"",className:pt(K,z0,T==null?void 0:T.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Ds(f.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:U=>{var ne,le;Ds(f.cancel)&&hr&&((le=(ne=f.cancel).onClick)==null||le.call(ne,U),tn())},className:pt(T==null?void 0:T.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Ds(f.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:U=>{var ne,le;Ds(f.action)&&((le=(ne=f.action).onClick)==null||le.call(ne,U),!U.defaultPrevented&&tn())},className:pt(T==null?void 0:T.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Zd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function iw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",l=s?J1:Z1;function a(c){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=l:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):a(l)}),n}var lw=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:a,mobileOffset:c,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:S=X1,toastOptions:y,dir:w=Zd(),gap:m=tw,loadingIcon:h,icons:v,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:E}=e,[k,C]=_.useState([]),P=_.useMemo(()=>Array.from(new Set([r].concat(k.filter(D=>D.position).map(D=>D.position)))),[k,r]),[A,M]=_.useState([]),[$,z]=_.useState(!1),[K,O]=_.useState(!1),[q,B]=_.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=_.useRef(null),j=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=_.useRef(null),L=_.useRef(!1),H=_.useCallback(D=>{C(Y=>{var X;return(X=Y.find(me=>me.id===D.id))!=null&&X.delete||De.dismiss(D.id),Y.filter(({id:me})=>me!==D.id)})},[]);return _.useEffect(()=>De.subscribe(D=>{if(D.dismiss){C(Y=>Y.map(X=>X.id===D.id?{...X,delete:!0}:X));return}setTimeout(()=>{qh.flushSync(()=>{C(Y=>{let X=Y.findIndex(me=>me.id===D.id);return X!==-1?[...Y.slice(0,X),{...Y[X],...D},...Y.slice(X+1)]:[D,...Y]})})})}),[]),_.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:Y})=>{B(Y?"dark":"light")})}catch{D.addListener(({matches:X})=>{try{B(X?"dark":"light")}catch(me){console.error(me)}})}},[d]),_.useEffect(()=>{k.length<=1&&z(!1)},[k]),_.useEffect(()=>{let D=Y=>{var X,me;o.every(je=>Y[je]||Y.code===je)&&(z(!0),(X=V.current)==null||X.focus()),Y.code==="Escape"&&(document.activeElement===V.current||(me=V.current)!=null&&me.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),_.useEffect(()=>{if(V.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,L.current=!1)}},[V.current]),_.createElement("section",{ref:t,"aria-label":`${b} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((D,Y)=>{var X;let[me,je]=D.split("-");return k.length?_.createElement("ol",{key:D,dir:w==="auto"?Zd():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":me,"data-lifted":$&&k.length>1&&!s,"data-x-position":je,style:{"--front-toast-height":`${((X=A[0])==null?void 0:X.height)||0}px`,"--width":`${ew}px`,"--gap":`${m}px`,...f,...iw(a,c)},onBlur:ee=>{L.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(L.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||L.current||(L.current=!0,T.current=ee.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{K||z(!1)},onDragEnd:()=>z(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},k.filter(ee=>!ee.position&&Y===0||ee.position===D).map((ee,dr)=>{var Zt,Fn;return _.createElement(sw,{key:ee.id,icons:v,index:dr,toast:ee,defaultRichColors:p,duration:(Zt=y==null?void 0:y.duration)!=null?Zt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:S,closeButton:(Fn=y==null?void 0:y.closeButton)!=null?Fn:i,interacting:K,position:D,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:k.filter(Jt=>Jt.position==ee.position),heights:A.filter(Jt=>Jt.position==ee.position),setHeights:M,expandByDefault:s,gap:m,loadingIcon:h,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const aw=({...e})=>{const{theme:t="system"}=O1();return u.jsx(lw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},uw=["top","right","bottom","left"],An=Math.min,Ye=Math.max,Ti=Math.round,Fs=Math.floor,At=e=>({x:e,y:e}),cw={left:"right",right:"left",bottom:"top",top:"bottom"};function qa(e,t,n){return Ye(e,An(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Gt(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function dc(e){return e==="x"?"y":"x"}function fc(e){return e==="y"?"height":"width"}function _t(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function pc(e){return dc(_t(e))}function dw(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=pc(e),s=fc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ri(i)),[i,Ri(i)]}function fw(e){const t=Ri(e);return[Xa(e),t,Xa(t)]}function Xa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Jd=["left","right"],ef=["right","left"],pw=["top","bottom"],hw=["bottom","top"];function mw(e,t,n){switch(e){case"top":case"bottom":return n?t?ef:Jd:t?Jd:ef;case"left":case"right":return t?pw:hw;default:return[]}}function gw(e,t,n,r){const o=ao(e);let s=mw(Gt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xa)))),s}function Ri(e){const t=Gt(e);return cw[t]+e.slice(t.length)}function vw(e){return{top:0,right:0,bottom:0,left:0,...e}}function $m(e){return typeof e!="number"?vw(e):{top:e,right:e,bottom:e,left:e}}function _i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function tf(e,t,n){let{reference:r,floating:o}=e;const s=_t(t),i=pc(t),l=fc(i),a=Gt(t),c=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(ao(t)){case"start":f[i]-=g*(n&&c?-1:1);break;case"end":f[i]+=g*(n&&c?-1:1);break}return f}async function yw(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:g=!1,padding:f=0}=Yt(t,e),S=$m(f),w=l[g?p==="floating"?"reference":"floating":p],m=_i(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),h=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},E=_i(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:v,strategy:a}):h);return{top:(m.top-E.top+S.top)/b.y,bottom:(E.bottom-m.bottom+S.bottom)/b.y,left:(m.left-E.left+S.left)/b.x,right:(E.right-m.right+S.right)/b.x}}const xw=50,ww=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:yw},a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=tf(c,r,a),g=r,f=0;const S={};for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:d=0}=Yt(e,t)||{};if(c==null)return{};const p=$m(d),g={x:n,y:r},f=pc(o),S=fc(f),y=await i.getDimensions(c),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=s.reference[S]+s.reference[f]-g[f]-s.floating[S],E=g[f]-s.reference[f],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let C=k?k[v]:0;(!C||!await(i.isElement==null?void 0:i.isElement(k)))&&(C=l.floating[v]||s.floating[S]);const P=b/2-E/2,A=C/2-y[S]/2-1,M=An(p[m],A),$=An(p[h],A),z=M,K=C-y[S]-$,O=C/2-y[S]/2+P,q=qa(z,O,K),B=!a.arrow&&ao(o)!=null&&O!==q&&s.reference[S]/2-(OO<=0)){var $,z;const O=((($=s.flip)==null?void 0:$.index)||0)+1,q=C[O];if(q&&(!(p==="alignment"?h!==_t(q):!1)||M.every(j=>_t(j.placement)===h?j.overflows[0]>0:!0)))return{data:{index:O,overflows:M},reset:{placement:q}};let B=(z=M.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:z.placement;if(!B)switch(f){case"bestFit":{var K;const V=(K=M.filter(j=>{if(k){const T=_t(j.placement);return T===h||T==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)]).sort((j,T)=>j[1]-T[1])[0])==null?void 0:K[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function nf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rf(e){return uw.some(t=>e[t]>=0)}const Ew=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Yt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=nf(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:rf(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),l=nf(i,n.floating);return{data:{escapedOffsets:l,escaped:rf(l)}}}default:return{}}}}},Bm=new Set(["left","top"]);async function kw(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Gt(n),l=ao(n),a=_t(n)==="y",c=Bm.has(i)?-1:1,d=s&&a?-1:1,p=Yt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof S=="number"&&(f=l==="end"?S*-1:S),a?{x:f*d,y:g*c}:{x:g*c,y:f*d}}const Cw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await kw(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},Nw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:m=>{let{x:h,y:v}=m;return{x:h,y:v}}},...c}=Yt(e,t),d={x:n,y:r},p=await s.detectOverflow(t,c),g=_t(Gt(o)),f=dc(g);let S=d[f],y=d[g];if(i){const m=f==="y"?"top":"left",h=f==="y"?"bottom":"right",v=S+p[m],b=S-p[h];S=qa(v,S,b)}if(l){const m=g==="y"?"top":"left",h=g==="y"?"bottom":"right",v=y+p[m],b=y-p[h];y=qa(v,y,b)}const w=a.fn({...t,[f]:S,[g]:y});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[f]:i,[g]:l}}}}}},jw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=Yt(e,t),d={x:n,y:r},p=_t(o),g=dc(p);let f=d[g],S=d[p];const y=Yt(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=g==="y"?"height":"width",b=s.reference[g]-s.floating[v]+w.mainAxis,E=s.reference[g]+s.reference[v]-w.mainAxis;fE&&(f=E)}if(c){var m,h;const v=g==="y"?"width":"height",b=Bm.has(Gt(o)),E=s.reference[p]-s.floating[v]+(b&&((m=i.offset)==null?void 0:m[p])||0)+(b?0:w.crossAxis),k=s.reference[p]+s.reference[v]+(b?0:((h=i.offset)==null?void 0:h[p])||0)-(b?w.crossAxis:0);Sk&&(S=k)}return{[g]:f,[p]:S}}}},Pw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...c}=Yt(e,t),d=await i.detectOverflow(t,c),p=Gt(o),g=ao(o),f=_t(o)==="y",{width:S,height:y}=s.floating;let w,m;p==="top"||p==="bottom"?(w=p,m=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(m=p,w=g==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=S-d.left-d.right,b=An(y-d[w],h),E=An(S-d[m],v),k=!t.middlewareData.shift;let C=b,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=h),k&&!g){const M=Ye(d.left,0),$=Ye(d.right,0),z=Ye(d.top,0),K=Ye(d.bottom,0);f?P=S-2*(M!==0||$!==0?M+$:Ye(d.left,d.right)):C=y-2*(z!==0||K!==0?z+K:Ye(d.top,d.bottom))}await a({...t,availableWidth:P,availableHeight:C});const A=await i.getDimensions(l.floating);return S!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function rl(){return typeof window<"u"}function uo(e){return Um(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lt(e){var t;return(t=(Um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Um(e){return rl()?e instanceof Node||e instanceof Xe(e).Node:!1}function Et(e){return rl()?e instanceof Element||e instanceof Xe(e).Element:!1}function Xt(e){return rl()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function of(e){return!rl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function hs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Tw(e){return/^(table|td|th)$/.test(uo(e))}function ol(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rw=/transform|translate|scale|rotate|perspective|filter/,_w=/paint|layout|strict|content/,Un=e=>!!e&&e!=="none";let Yl;function hc(e){const t=Et(e)?kt(e):e;return Un(t.transform)||Un(t.translate)||Un(t.scale)||Un(t.rotate)||Un(t.perspective)||!mc()&&(Un(t.backdropFilter)||Un(t.filter))||Rw.test(t.willChange||"")||_w.test(t.contain||"")}function Mw(e){let t=Ln(e);for(;Xt(t)&&!to(t);){if(hc(t))return t;if(ol(t))return null;t=Ln(t)}return null}function mc(){return Yl==null&&(Yl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yl}function to(e){return/^(html|body|#document)$/.test(uo(e))}function kt(e){return Xe(e).getComputedStyle(e)}function sl(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||of(e)&&e.host||Lt(e);return of(t)?t.host:t}function Vm(e){const t=Ln(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&hs(t)?t:Vm(t)}function ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vm(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Xe(o);if(s){const l=Za(i);return t.concat(i,i.visualViewport||[],hs(o)?o:[],l&&n?ts(l):[])}else return t.concat(o,ts(o,[],n))}function Za(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hm(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Ti(n)!==s||Ti(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function gc(e){return Et(e)?e:e.contextElement}function zr(e){const t=gc(e);if(!Xt(t))return At(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Hm(t);let i=(s?Ti(n.width):n.width)/r,l=(s?Ti(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ow=At(0);function Wm(e){const t=Xe(e);return!mc()||!t.visualViewport?Ow:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Aw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=gc(e);let i=At(1);t&&(r?Et(r)&&(i=zr(r)):i=zr(e));const l=Aw(s,n,r)?Wm(s):At(0);let a=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const g=Xe(s),f=r&&Et(r)?Xe(r):r;let S=g,y=Za(S);for(;y&&r&&f!==S;){const w=zr(y),m=y.getBoundingClientRect(),h=kt(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,b=m.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;a*=w.x,c*=w.y,d*=w.x,p*=w.y,a+=v,c+=b,S=Xe(y),y=Za(S)}}return _i({width:d,height:p,x:a,y:c})}function il(e,t){const n=sl(e).scrollLeft;return t?t.left+n:lr(Lt(e)).left+n}function Qm(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-il(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Lw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Lt(r),l=t?ol(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=At(1);const d=At(0),p=Xt(r);if((p||!p&&!s)&&((uo(r)!=="body"||hs(i))&&(a=sl(r)),p)){const f=lr(r);c=zr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=i&&!p&&!s?Qm(i,a):At(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-a.scrollTop*c.y+d.y+g.y}}function Iw(e){return Array.from(e.getClientRects())}function zw(e){const t=Lt(e),n=sl(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+il(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(i+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const sf=25;function Dw(e,t){const n=Xe(e),r=Lt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const d=mc();(!d||d&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}const c=il(r);if(c<=0){const d=r.ownerDocument,p=d.body,g=getComputedStyle(p),f=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,S=Math.abs(r.clientWidth-p.clientWidth-f);S<=sf&&(s-=S)}else c<=sf&&(s+=c);return{width:s,height:i,x:l,y:a}}function Fw(e,t){const n=lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Xt(e)?zr(e):At(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,c=r*s.y;return{width:i,height:l,x:a,y:c}}function lf(e,t,n){let r;if(t==="viewport")r=Dw(e,n);else if(t==="document")r=zw(Lt(e));else if(Et(t))r=Fw(t,n);else{const o=Wm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _i(r)}function Km(e,t){const n=Ln(e);return n===t||!Et(n)||to(n)?!1:kt(n).position==="fixed"||Km(n,t)}function $w(e,t){const n=t.get(e);if(n)return n;let r=ts(e,[],!1).filter(l=>Et(l)&&uo(l)!=="body"),o=null;const s=kt(e).position==="fixed";let i=s?Ln(e):e;for(;Et(i)&&!to(i);){const l=kt(i),a=hc(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||hs(i)&&!a&&Km(e,i))?r=r.filter(d=>d!==i):o=l,i=Ln(i)}return t.set(e,r),r}function Bw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ol(t)?[]:$w(t,this._c):[].concat(n),r],l=lf(t,i[0],o);let a=l.top,c=l.right,d=l.bottom,p=l.left;for(let g=1;g{i(!1,1e-7)},1e3)}C===1&&!Gm(c,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),s}function Yw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=gc(e),d=o||s?[...c?ts(c):[],...t?ts(t):[]]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const p=c&&l?Kw(c,n):null;let g=-1,f=null;i&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),c&&!a&&f.observe(c),t&&f.observe(t));let S,y=a?lr(e):null;a&&w();function w(){const m=lr(e);y&&!Gm(y,m)&&n(),y=m,S=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(S)}}const Gw=Cw,qw=Nw,Xw=Sw,Zw=Pw,Jw=Ew,uf=bw,e2=jw,t2=(e,t,n)=>{const r=new Map,o={platform:Qw,...n},s={...o.platform,_c:r};return ww(e,t,{...o,platform:s})};var n2=typeof document<"u",r2=function(){},ti=n2?x.useLayoutEffect:r2;function Mi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Mi(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function qm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cf(e,t){const n=qm(e);return Math.round(t*n)/n}function ql(e){const t=x.useRef(e);return ti(()=>{t.current=e}),t}function o2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=x.useState(r);Mi(g,r)||f(r);const[S,y]=x.useState(null),[w,m]=x.useState(null),h=x.useCallback(j=>{j!==k.current&&(k.current=j,y(j))},[]),v=x.useCallback(j=>{j!==C.current&&(C.current=j,m(j))},[]),b=s||S,E=i||w,k=x.useRef(null),C=x.useRef(null),P=x.useRef(d),A=a!=null,M=ql(a),$=ql(o),z=ql(c),K=x.useCallback(()=>{if(!k.current||!C.current)return;const j={placement:t,strategy:n,middleware:g};$.current&&(j.platform=$.current),t2(k.current,C.current,j).then(T=>{const L={...T,isPositioned:z.current!==!1};O.current&&!Mi(P.current,L)&&(P.current=L,fs.flushSync(()=>{p(L)}))})},[g,t,n,$,z]);ti(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(j=>({...j,isPositioned:!1})))},[c]);const O=x.useRef(!1);ti(()=>(O.current=!0,()=>{O.current=!1}),[]),ti(()=>{if(b&&(k.current=b),E&&(C.current=E),b&&E){if(M.current)return M.current(b,E,K);K()}},[b,E,K,M,A]);const q=x.useMemo(()=>({reference:k,floating:C,setReference:h,setFloating:v}),[h,v]),B=x.useMemo(()=>({reference:b,floating:E}),[b,E]),V=x.useMemo(()=>{const j={position:n,left:0,top:0};if(!B.floating)return j;const T=cf(B.floating,d.x),L=cf(B.floating,d.y);return l?{...j,transform:"translate("+T+"px, "+L+"px)",...qm(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:L}},[n,l,B.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:K,refs:q,elements:B,floatingStyles:V}),[d,K,q,B,V])}const s2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?uf({element:r.current,padding:o}).fn(n):{}:r?uf({element:r,padding:o}).fn(n):{}}}},i2=(e,t)=>{const n=Gw(e);return{name:n.name,fn:n.fn,options:[e,t]}},l2=(e,t)=>{const n=qw(e);return{name:n.name,fn:n.fn,options:[e,t]}},a2=(e,t)=>({fn:e2(e).fn,options:[e,t]}),u2=(e,t)=>{const n=Xw(e);return{name:n.name,fn:n.fn,options:[e,t]}},c2=(e,t)=>{const n=Zw(e);return{name:n.name,fn:n.fn,options:[e,t]}},d2=(e,t)=>{const n=Jw(e);return{name:n.name,fn:n.fn,options:[e,t]}},f2=(e,t)=>{const n=s2(e);return{name:n.name,fn:n.fn,options:[e,t]}};var p2="Arrow",Xm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(We.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xm.displayName=p2;var h2=Xm;function m2(e){const[t,n]=x.useState(void 0);return On(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,c=Array.isArray(a)?a[0]:a;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zm="Popper",[Jm,e0]=Zi(Zm),[SS,t0]=Jm(Zm),n0="PopperAnchor",r0=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=t0(n0,n),i=x.useRef(null),l=St(t,i),a=x.useRef(null);return x.useEffect(()=>{const c=a.current;a.current=(r==null?void 0:r.current)||i.current,c!==a.current&&s.onAnchorChange(a.current)}),r?null:u.jsx(We.div,{...o,ref:l})});r0.displayName=n0;var vc="PopperContent",[g2,v2]=Jm(vc),o0=x.forwardRef((e,t)=>{var ee,dr,Zt,Fn,Jt,fr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:S,...y}=e,w=t0(vc,n),[m,h]=x.useState(null),v=St(t,en=>h(en)),[b,E]=x.useState(null),k=m2(b),C=(k==null?void 0:k.width)??0,P=(k==null?void 0:k.height)??0,A=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(c)?c:[c],z=$.length>0,K={padding:M,boundary:$.filter(x2),altBoundary:z},{refs:O,floatingStyles:q,placement:B,isPositioned:V,middlewareData:j}=o2({strategy:"fixed",placement:A,whileElementsMounted:(...en)=>Yw(...en,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[i2({mainAxis:o+P,alignmentAxis:i}),a&&l2({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?a2():void 0,...K}),a&&u2({...K}),c2({...K,apply:({elements:en,rects:ms,availableWidth:pl,availableHeight:gs})=>{const{width:hl,height:co}=ms.reference,pr=en.floating.style;pr.setProperty("--radix-popper-available-width",`${pl}px`),pr.setProperty("--radix-popper-available-height",`${gs}px`),pr.setProperty("--radix-popper-anchor-width",`${hl}px`),pr.setProperty("--radix-popper-anchor-height",`${co}px`)}}),b&&f2({element:b,padding:l}),w2({arrowWidth:C,arrowHeight:P}),g&&d2({strategy:"referenceHidden",...K})]}),[T,L]=l0(B),H=Mn(S);On(()=>{V&&(H==null||H())},[V,H]);const D=(ee=j.arrow)==null?void 0:ee.x,Y=(dr=j.arrow)==null?void 0:dr.y,X=((Zt=j.arrow)==null?void 0:Zt.centerOffset)!==0,[me,je]=x.useState();return On(()=>{m&&je(window.getComputedStyle(m).zIndex)},[m]),u.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:V?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Fn=j.transformOrigin)==null?void 0:Fn.x,(Jt=j.transformOrigin)==null?void 0:Jt.y].join(" "),...((fr=j.hide)==null?void 0:fr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(g2,{scope:n,placedSide:T,onArrowChange:E,arrowX:D,arrowY:Y,shouldHideArrow:X,children:u.jsx(We.div,{"data-side":T,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});o0.displayName=vc;var s0="PopperArrow",y2={top:"bottom",right:"left",bottom:"top",left:"right"},i0=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=v2(s0,r),i=y2[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(h2,{...o,ref:n,style:{...o.style,display:"block"}})})});i0.displayName=s0;function x2(e){return e!==null}var w2=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,d]=l0(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let S="",y="";return c==="bottom"?(S=i?p:`${g}px`,y=`${-a}px`):c==="top"?(S=i?p:`${g}px`,y=`${r.floating.height+a}px`):c==="right"?(S=`${-a}px`,y=i?p:`${f}px`):c==="left"&&(S=`${r.floating.width+a}px`,y=i?p:`${f}px`),{data:{x:S,y}}}});function l0(e){const[t,n="center"]=e.split("-");return[t,n]}var b2=r0,S2=o0,E2=i0,k2=Symbol("radix.slottable");function C2(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=k2,t}var[ll]=Zi("Tooltip",[e0]),yc=e0(),a0="TooltipProvider",N2=700,df="tooltip.open",[j2,u0]=ll(a0),c0=e=>{const{__scopeTooltip:t,delayDuration:n=N2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const c=a.current;return()=>window.clearTimeout(c)},[]),u.jsx(j2,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(c=>{l.current=c},[]),disableHoverableContent:o,children:s})};c0.displayName=a0;var d0="Tooltip",[ES,al]=ll(d0),Ja="TooltipTrigger",P2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=al(Ja,n),s=u0(Ja,n),i=yc(n),l=x.useRef(null),a=St(t,l,o.onTriggerChange),c=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>c.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(b2,{asChild:!0,...i,children:u.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});P2.displayName=Ja;var T2="TooltipPortal",[kS,R2]=ll(T2,{forceMount:void 0}),no="TooltipContent",f0=x.forwardRef((e,t)=>{const n=R2(no,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=al(no,e.__scopeTooltip);return u.jsx(oc,{present:r||i.open,children:i.disableHoverableContent?u.jsx(p0,{side:o,...s,ref:t}):u.jsx(_2,{side:o,...s,ref:t})})}),_2=x.forwardRef((e,t)=>{const n=al(no,e.__scopeTooltip),r=u0(no,e.__scopeTooltip),o=x.useRef(null),s=St(t,o),[i,l]=x.useState(null),{trigger:a,onClose:c}=n,d=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{l(null),p(!1)},[p]),f=x.useCallback((S,y)=>{const w=S.currentTarget,m={x:S.clientX,y:S.clientY},h=I2(m,w.getBoundingClientRect()),v=z2(m,h),b=D2(y.getBoundingClientRect()),E=$2([...v,...b]);l(E),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(a&&d){const S=w=>f(w,d),y=w=>f(w,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,f,g]),x.useEffect(()=>{if(i){const S=y=>{const w=y.target,m={x:y.clientX,y:y.clientY},h=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),v=!F2(m,i);h?g():v&&(g(),c())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,i,c,g]),u.jsx(p0,{...e,ref:s})}),[M2,O2]=ll(d0,{isInside:!1}),A2=C2("TooltipContent"),p0=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=al(no,n),c=yc(n),{onClose:d}=a;return x.useEffect(()=>(document.addEventListener(df,d),()=>document.removeEventListener(df,d)),[d]),x.useEffect(()=>{if(a.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),u.jsx(rc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:u.jsxs(S2,{"data-state":a.stateAttribute,...c,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(A2,{children:r}),u.jsx(M2,{scope:n,isInside:!0,children:u.jsx(ex,{id:a.contentId,role:"tooltip",children:o||r})})]})})});f0.displayName=no;var h0="TooltipArrow",L2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yc(n);return O2(h0,n).isInside?null:u.jsx(E2,{...o,...r,ref:t})});L2.displayName=h0;function I2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function z2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function D2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function F2(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=g>r&&n<(p-c)*(r-d)/(g-d)+c&&(o=!o)}return o}function $2(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),B2(t)}function B2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var U2=c0,m0=f0;const V2=U2,H2=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(m0,{ref:r,sideOffset:t,className:cr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));H2.displayName=m0.displayName;var ul=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yn,pn,Fr,jf,W2=(jf=class extends ul{constructor(){super();Z(this,Yn);Z(this,pn);Z(this,Fr);F(this,Fr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,pn)||this.setEventListener(N(this,Fr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,pn))==null||t.call(this),F(this,pn,void 0))}setEventListener(t){var n;F(this,Fr,t),(n=N(this,pn))==null||n.call(this),F(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Yn)!==t&&(F(this,Yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Yn)=="boolean"?N(this,Yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Yn=new WeakMap,pn=new WeakMap,Fr=new WeakMap,jf),g0=new W2,Q2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hn,lu,Pf,K2=(Pf=class{constructor(){Z(this,hn,Q2);Z(this,lu,!1)}setTimeoutProvider(e){F(this,hn,e)}setTimeout(e,t){return N(this,hn).setTimeout(e,t)}clearTimeout(e){N(this,hn).clearTimeout(e)}setInterval(e,t){return N(this,hn).setInterval(e,t)}clearInterval(e){N(this,hn).clearInterval(e)}},hn=new WeakMap,lu=new WeakMap,Pf),eu=new K2;function Y2(e){setTimeout(e,0)}var G2=typeof window>"u"||"Deno"in globalThis;function mt(){}function q2(e,t){return typeof e=="function"?e(t):e}function X2(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tu(e,t){return typeof e=="function"?e(t):e}function J2(e,t){return typeof e=="function"?e(t):e}function ff(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==xc(i,t.options))return!1}else if(!rs(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function pf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ns(t.options.mutationKey)!==ns(s))return!1}else if(!rs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ns)(e)}function ns(e){return JSON.stringify(e,(t,n)=>nu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function rs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rs(e[n],t[n])):!1}var eb=Object.prototype.hasOwnProperty;function v0(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=hf(e)&&hf(t);if(!r&&!(nu(e)&&nu(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let c=0;for(let d=0;d{eu.setTimeout(t,e)})}function nb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?v0(e,t):t}function rb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ob(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wc=Symbol();function y0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function sb(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var x0=(()=>{let e=()=>G2;return{isServer(){return e()},setIsServer(t){e=t}}})();function ib(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var lb=Y2;function ab(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=lb;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ae=ab(),$r,mn,Br,Tf,ub=(Tf=class extends ul{constructor(){super();Z(this,$r,!0);Z(this,mn);Z(this,Br);F(this,Br,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,mn)||this.setEventListener(N(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,mn))==null||t.call(this),F(this,mn,void 0))}setEventListener(t){var n;F(this,Br,t),(n=N(this,mn))==null||n.call(this),F(this,mn,t(this.setOnline.bind(this)))}setOnline(t){N(this,$r)!==t&&(F(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,$r)}},$r=new WeakMap,mn=new WeakMap,Br=new WeakMap,Tf),Oi=new ub;function cb(e){return Math.min(1e3*2**e,3e4)}function w0(e){return(e??"online")==="online"?Oi.isOnline():!0}var ru=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function b0(e){let t=!1,n=0,r;const o=ib(),s=()=>o.status!=="pending",i=y=>{var w;if(!s()){const m=new ru(y);g(m),(w=e.onCancel)==null||w.call(e,m)}},l=()=>{t=!0},a=()=>{t=!1},c=()=>g0.isFocused()&&(e.networkMode==="always"||Oi.isOnline())&&e.canRun(),d=()=>w0(e.networkMode)&&e.canRun(),p=y=>{s()||(r==null||r(),o.resolve(y))},g=y=>{s()||(r==null||r(),o.reject(y))},f=()=>new Promise(y=>{var w;r=m=>{(s()||c())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),S=()=>{if(s())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(p).catch(m=>{var k;if(s())return;const h=e.retry??(x0.isServer()?0:3),v=e.retryDelay??cb,b=typeof v=="function"?v(n,m):v,E=h===!0||typeof h=="number"&&nc()?void 0:f()).then(()=>{t?g(m):S()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?S():f().then(S),o)}}var Gn,Rf,S0=(Rf=class{constructor(){Z(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),X2(this.gcTime)&&F(this,Gn,eu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(x0.isServer()?1/0:5*60*1e3))}clearGcTimeout(){N(this,Gn)!==void 0&&(eu.clearTimeout(N(this,Gn)),F(this,Gn,void 0))}},Gn=new WeakMap,Rf);function db(e){return{onFetch:(t,n)=>{var d,p,g,f,S;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const c=async()=>{let y=!1;const w=v=>{sb(v,()=>t.signal,()=>y=!0)},m=y0(t.options,t.fetchOptions),h=async(v,b,E)=>{if(y)return Promise.reject(t.signal.reason);if(b==null&&v.pages.length)return Promise.resolve(v);const C=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};return w($),$})(),P=await m(C),{maxPages:A}=t.options,M=E?ob:rb;return{pages:M(v.pages,P,A),pageParams:M(v.pageParams,b,A)}};if(o&&s.length){const v=o==="backward",b=v?fb:gf,E={pages:s,pageParams:i},k=b(r,E);l=await h(E,k,v)}else{const v=e??s.length;do{const b=a===0?i[0]??r.initialPageParam:gf(r,l);if(a>0&&b==null)break;l=await h(l,b),a++}while(a{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function gf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ur,qn,Vr,nt,Xn,we,os,Zn,Ke,E0,zt,_f,pb=(_f=class extends S0{constructor(t){super();Z(this,Ke);Z(this,Ur);Z(this,qn);Z(this,Vr);Z(this,nt);Z(this,Xn);Z(this,we);Z(this,os);Z(this,Zn);F(this,Zn,!1),F(this,os,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,Xn,t.client),F(this,nt,N(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,qn,yf(this.options)),this.state=t.state??N(this,qn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,Ur)}get promise(){var t;return(t=N(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,os),...t},t!=null&&t._type&&F(this,Ur,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=yf(this.options);n.data!==void 0&&(this.setState(vf(n.data,n.dataUpdatedAt)),F(this,qn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,nt).remove(this)}setData(t,n){const r=nb(this.state.data,t,this.options);return Ee(this,Ke,zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ee(this,Ke,zt).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=N(this,we))==null?void 0:r.promise;return(o=N(this,we))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,qn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>J2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>tu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Z2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,we)&&(N(this,Zn)||Ee(this,Ke,E0).call(this)?N(this,we).cancel({revert:!0}):N(this,we).cancelRetry()),this.scheduleGc()),N(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Ke,zt).call(this,{type:"invalidate"})}async fetch(t,n){var c,d,p,g,f,S,y,w,m,h,v;if(this.state.fetchStatus!=="idle"&&((c=N(this,we))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,we))return N(this,we).continueRetry(),N(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(E=>E.options.queryFn);b&&this.setOptions(b.options)}const r=new AbortController,o=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(F(this,Zn,!0),r.signal)})},s=()=>{const b=y0(this.options,n),k=(()=>{const C={client:N(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(C),C})();return F(this,Zn,!1),this.options.persister?this.options.persister(b,k,this):b(k)},l=(()=>{const b={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Xn),state:this.state,fetchFn:s};return o(b),b})(),a=N(this,Ur)==="infinite"?db(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),F(this,Vr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Ee(this,Ke,zt).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),F(this,we,b0({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:b=>{b instanceof ru&&b.revert&&this.setState({...N(this,Vr),fetchStatus:"idle"}),r.abort()},onFail:(b,E)=>{Ee(this,Ke,zt).call(this,{type:"failed",failureCount:b,error:E})},onPause:()=>{Ee(this,Ke,zt).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Ke,zt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const b=await N(this,we).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(f=(g=N(this,nt).config).onSuccess)==null||f.call(g,b,this),(y=(S=N(this,nt).config).onSettled)==null||y.call(S,b,this.state.error,this),b}catch(b){if(b instanceof ru){if(b.silent)return N(this,we).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw Ee(this,Ke,zt).call(this,{type:"error",error:b}),(m=(w=N(this,nt).config).onError)==null||m.call(w,b,this),(v=(h=N(this,nt).config).onSettled)==null||v.call(h,this.state.data,b,this),b}finally{this.scheduleGc()}}},Ur=new WeakMap,qn=new WeakMap,Vr=new WeakMap,nt=new WeakMap,Xn=new WeakMap,we=new WeakMap,os=new WeakMap,Zn=new WeakMap,Ke=new WeakSet,E0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hb(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...vf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Vr,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,nt).notify({query:this,type:"updated",action:t})})},_f);function hb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function yf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ss,jt,Re,Jn,Pt,an,Mf,mb=(Mf=class extends S0{constructor(t){super();Z(this,Pt);Z(this,ss);Z(this,jt);Z(this,Re);Z(this,Jn);F(this,ss,t.client),this.mutationId=t.mutationId,F(this,Re,t.mutationCache),F(this,jt,[]),this.state=t.state||gb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,jt).includes(t)||(N(this,jt).push(t),this.clearGcTimeout(),N(this,Re).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,jt,N(this,jt).filter(n=>n!==t)),this.scheduleGc(),N(this,Re).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,jt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Re).remove(this))}continue(){var t;return((t=N(this,Jn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,c,d,p,g,f,S,y,w,m,h,v,b,E,k,C;const n=()=>{Ee(this,Pt,an).call(this,{type:"continue"})},r={client:N(this,ss),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,Jn,b0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{Ee(this,Pt,an).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{Ee(this,Pt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Re).canRun(this)}));const o=this.state.status==="pending",s=!N(this,Jn).canStart();try{if(o)n();else{Ee(this,Pt,an).call(this,{type:"pending",variables:t,isPaused:s}),N(this,Re).config.onMutate&&await N(this,Re).config.onMutate(t,this,r);const A=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));A!==this.state.context&&Ee(this,Pt,an).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const P=await N(this,Jn).start();return await((c=(a=N(this,Re).config).onSuccess)==null?void 0:c.call(a,P,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,P,t,this.state.context,r)),await((f=(g=N(this,Re).config).onSettled)==null?void 0:f.call(g,P,null,this.state.variables,this.state.context,this,r)),await((y=(S=this.options).onSettled)==null?void 0:y.call(S,P,null,t,this.state.context,r)),Ee(this,Pt,an).call(this,{type:"success",data:P}),P}catch(P){try{await((m=(w=N(this,Re).config).onError)==null?void 0:m.call(w,P,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((v=(h=this.options).onError)==null?void 0:v.call(h,P,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((E=(b=N(this,Re).config).onSettled)==null?void 0:E.call(b,void 0,P,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,P,t,this.state.context,r))}catch(A){Promise.reject(A)}throw Ee(this,Pt,an).call(this,{type:"error",error:P}),P}finally{N(this,Re).runNext(this)}}},ss=new WeakMap,jt=new WeakMap,Re=new WeakMap,Jn=new WeakMap,Pt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ae.batch(()=>{N(this,jt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Re).notify({mutation:this,type:"updated",action:t})})},Mf);function gb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,gt,is,Of,vb=(Of=class extends ul{constructor(t={}){super();Z(this,$t);Z(this,gt);Z(this,is);this.config=t,F(this,$t,new Set),F(this,gt,new Map),F(this,is,0)}build(t,n,r){const o=new mb({client:t,mutationCache:this,mutationId:++ys(this,is)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,$t).add(t);const n=$s(t);if(typeof n=="string"){const r=N(this,gt).get(n);r?r.push(t):N(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,$t).delete(t)){const n=$s(t);if(typeof n=="string"){const r=N(this,gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=$s(t);if(typeof n=="string"){const r=N(this,gt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=$s(t);if(typeof n=="string"){const o=(r=N(this,gt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ae.batch(()=>{N(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,$t).clear(),N(this,gt).clear()})}getAll(){return Array.from(N(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pf(n,r))}findAll(t={}){return this.getAll().filter(n=>pf(t,n))}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},$t=new WeakMap,gt=new WeakMap,is=new WeakMap,Of);function $s(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Tt,Af,yb=(Af=class extends ul{constructor(t={}){super();Z(this,Tt);this.config=t,F(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??xc(o,n);let i=this.get(s);return i||(i=new pb({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,Tt).has(t.queryHash)||(N(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Tt).get(t)}getAll(){return[...N(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ff(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ff(t,r)):n}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,Af),fe,gn,vn,Hr,Wr,yn,Qr,Kr,Lf,xb=(Lf=class{constructor(e={}){Z(this,fe);Z(this,gn);Z(this,vn);Z(this,Hr);Z(this,Wr);Z(this,yn);Z(this,Qr);Z(this,Kr);F(this,fe,e.queryCache||new yb),F(this,gn,e.mutationCache||new vb),F(this,vn,e.defaultOptions||{}),F(this,Hr,new Map),F(this,Wr,new Map),F(this,yn,0)}mount(){ys(this,yn)._++,N(this,yn)===1&&(F(this,Qr,g0.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,fe).onFocus())})),F(this,Kr,Oi.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,fe).onOnline())})))}unmount(){var e,t;ys(this,yn)._--,N(this,yn)===0&&((e=N(this,Qr))==null||e.call(this),F(this,Qr,void 0),(t=N(this,Kr))==null||t.call(this),F(this,Kr,void 0))}isFetching(e){return N(this,fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,fe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,fe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,fe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,fe).get(r.queryHash),s=o==null?void 0:o.state.data,i=q2(t,s);if(i!==void 0)return N(this,fe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ae.batch(()=>N(this,fe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,fe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,fe);Ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,fe);return Ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ae.batch(()=>N(this,fe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return Ae.batch(()=>(N(this,fe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ae.batch(()=>N(this,fe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,fe).build(this,t);return n.isStaleByTime(tu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Oi.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,fe)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(e){F(this,vn,e)}setQueryDefaults(e,t){N(this,Hr).set(ns(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Hr).values()],n={};return t.forEach(r=>{rs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Wr).set(ns(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Wr).values()],n={};return t.forEach(r=>{rs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===wc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,fe).clear(),N(this,gn).clear()}},fe=new WeakMap,gn=new WeakMap,vn=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,yn=new WeakMap,Qr=new WeakMap,Kr=new WeakMap,Lf),wb=x.createContext(void 0),bb=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(wb.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function k0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eb(){return Math.random().toString(36).substr(2,8)}function wf(e,t){return{usr:e.state,key:e.key,idx:t}}function ou(e,t,n,r){return n===void 0&&(n=null),Ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cl(t):t,{state:n,key:t&&t.key||r||Eb()})}function C0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function cl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function kb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=bn.Pop,a=null,c=d();c==null&&(c=0,i.replaceState(Ai({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function p(){l=bn.Pop;let w=d(),m=w==null?null:w-c;c=w,a&&a({action:l,location:y.location,delta:m})}function g(w,m){l=bn.Push;let h=ou(y.location,w,m);c=d()+1;let v=wf(h,c),b=y.createHref(h);try{i.pushState(v,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}s&&a&&a({action:l,location:y.location,delta:1})}function f(w,m){l=bn.Replace;let h=ou(y.location,w,m);c=d();let v=wf(h,c),b=y.createHref(h);i.replaceState(v,"",b),s&&a&&a({action:l,location:y.location,delta:0})}function S(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:C0(w);return h=h.replace(/ $/,"%20"),He(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return l},get location(){return e(o,i)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(xf,p),a=w,()=>{o.removeEventListener(xf,p),a=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let m=S(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(w){return i.go(w)}};return y}var bf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bf||(bf={}));function Cb(e,t,n){return n===void 0&&(n="/"),Nb(e,t,n)}function Nb(e,t,n,r){let o=typeof t=="string"?cl(t):t,s=P0(o.pathname||"/",n);if(s==null)return null;let i=N0(e);jb(i);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(He(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=Dr([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),N0(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Ab(c,s.index),routesMeta:d})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of j0(s.path))o(s,i,a)}),t}function j0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=j0(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function jb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Pb=/^:[\w-]+$/,Tb=3,Rb=2,_b=1,Mb=10,Ob=-2,Sf=e=>e==="*";function Ab(e,t){let n=e.split("/"),r=n.length;return n.some(Sf)&&(r+=Ob),t&&(r+=Rb),n.filter(o=>!Sf(o)).reduce((o,s)=>o+(Pb.test(s)?Tb:s===""?_b:Mb),r)}function Lb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ib(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l{let{paramName:g,isOptional:f}=d;if(g==="*"){let y=l[p]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const S=l[p];return f&&!S?c[g]=void 0:c[g]=(S||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function Db(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Fb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function P0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Dr=e=>e.join("/").replace(/\/\/+/g,"/"),$b=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Bb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const T0=["post","put","patch","delete"];new Set(T0);const Ub=["get",...T0];new Set(Ub);/** * React Router v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:Dr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Dr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?x.createElement(dl.Provider,{value:{location:Li({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:bn.Pop}},y):y}function Kb(){let e=tS(),t=Bb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const Yb=x.createElement(Kb,null);class Gb extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(fl.Provider,{value:this.props.routeContext},x.createElement(_0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qb(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(Vb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(fl.Provider,{value:t},r)}function Xb(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||He(!1),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let f,S=!1,y=null,w=null;n&&(f=l&&p.route.id?l[p.route.id]:void 0,y=p.route.errorElement||Yb,a&&(c<0&&g===0?(nS("route-fallback"),S=!0,w=null):c===g&&(S=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,g+1)),h=()=>{let v;return f?v=y:S?v=w:p.route.Component?v=x.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,x.createElement(qb,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(Gb,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var O0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(O0||{});function Zb(e){let t=x.useContext(Hb);return t||He(!1),t}function Jb(e){let t=x.useContext(fl);return t||He(!1),t}function eS(e){let t=Jb(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function tS(){var e;let t=x.useContext(_0),n=Zb(O0.UseRouteError),r=eS();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Ef={};function nS(e,t,n){Ef[e]||(Ef[e]=!0)}function rS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function su(e){He(!1)}function oS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=bn.Pop,navigator:s,static:i=!1,future:l}=e;bc()&&He(!1);let a=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:a,navigator:s,static:i,future:Li({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=cl(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:S="default"}=r,y=x.useMemo(()=>{let w=P0(d,a);return w==null?null:{location:{pathname:w,search:p,hash:g,state:f,key:S},navigationType:o}},[a,d,p,g,f,S,o]);return y==null?null:x.createElement(R0.Provider,{value:c},x.createElement(dl.Provider,{children:n,value:y}))}function sS(e){let{children:t,location:n}=e;return Wb(iu(t),n)}new Promise(()=>{});function iu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let s=[...t,o];if(r.type===x.Fragment){n.push.apply(n,iu(r.props.children,s));return}r.type!==su&&He(!1),!r.props.index||!r.props.children||He(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=iu(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const iS="6";try{window.__reactRouterVersion=iS}catch{}const lS="startTransition",kf=Kf[lS];function aS(e){let{basename:t,children:n,future:r,window:o}=e,s=x.useRef();s.current==null&&(s.current=Sb({window:o,v5Compat:!0}));let i=s.current,[l,a]=x.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=x.useCallback(p=>{c&&kf?kf(()=>a(p)):a(p)},[a,c]);return x.useLayoutEffect(()=>i.listen(d),[i,d]),x.useEffect(()=>rS(r),[r]),x.createElement(oS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var Cf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cf||(Cf={}));var Nf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nf||(Nf={}));const Sc="https://vibe.filesafe.space/1785632090579412507/attachments/a155d419-f143-4b7f-b9db-625d77f33ee5.png",uS=({activeSection:e})=>{const[t,n]=x.useState(!1),[r,o]=x.useState(!1);x.useEffect(()=>{const l=()=>{n(window.scrollY>20)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const s=[{id:"hero",label:"الرئيسية"},{id:"about",label:"من نحن"},{id:"services",label:"خدماتنا"},{id:"solutions",label:"حلولنا ومنتجاتنا"},{id:"why-us",label:"لماذا تختارنا"},{id:"partners",label:"شركاؤنا"},{id:"contact",label:"اتصل بنا"}],i=l=>{o(!1);const a=document.getElementById(l);a&&a.scrollIntoView({behavior:"smooth"})};return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"bg-[#040813] border-b border-cyan-500/10 text-xs text-slate-300 py-2 hidden md:block",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex justify-between items-center",children:[u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsxs("a",{href:"mailto:info@manarburhan.iq",className:"flex items-center gap-2 hover:text-cyan-400 transition-colors",children:[u.jsx(Pi,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"info@manarburhan.iq"})]}),u.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[u.jsx(uc,{className:"w-3.5 h-3.5 text-emerald-400"}),u.jsx("span",{children:"اليرموك، بغداد، العراق"})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("span",{className:"text-cyan-400 font-semibold flex items-center gap-1.5 text-[11px] bg-cyan-950/60 border border-cyan-500/20 px-2.5 py-0.5 rounded-full",children:[u.jsx(io,{className:"w-3 h-3 text-cyan-400"}),"تمكين المستقبل الرقمي للعراق"]}),u.jsxs("a",{href:"http://www.manarburhan.iq",target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 hover:text-cyan-400 transition-colors",children:[u.jsx(tl,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"www.manarburhan.iq"})]})]})]})}),u.jsxs("header",{className:`sticky top-0 z-50 transition-all duration-300 ${t?"bg-[#060b18]/90 backdrop-blur-xl border-b border-cyan-500/20 shadow-2xl py-2.5":"bg-[#060b18]/60 backdrop-blur-md border-b border-white/5 py-4"}`,children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between",children:[u.jsxs("a",{href:"#hero",onClick:l=>{l.preventDefault(),i("hero")},className:"flex items-center gap-3 group",children:[u.jsx("div",{className:"relative p-1 rounded-xl bg-gradient-to-br from-cyan-500/20 to-blue-600/20 border border-cyan-500/30 group-hover:border-cyan-400 transition-all duration-300 overflow-hidden",children:u.jsx("img",{src:Sc,alt:"شركة منار البرهان MBX",className:"h-12 w-auto object-contain filter drop-shadow-[0_0_8px_rgba(0,240,255,0.4)] transition-transform duration-300 group-hover:scale-105"})}),u.jsxs("div",{className:"hidden sm:block",children:[u.jsxs("div",{className:"text-lg font-bold tracking-tight text-white flex items-center gap-1",children:["منار البرهان"," ",u.jsx("span",{className:"text-cyan-400 font-extrabold text-xl",children:"MBX"})]}),u.jsx("div",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:"Manar Al-Burhan Co."})]})]}),u.jsx("nav",{className:"hidden lg:flex items-center gap-1 xl:gap-2 bg-slate-900/60 p-1.5 rounded-full border border-slate-800",children:s.map(l=>u.jsx("button",{onClick:()=>i(l.id),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all duration-200 ${e===l.id?"bg-gradient-to-r from-cyan-500 to-blue-600 text-black font-bold shadow-[0_0_15px_rgba(0,240,255,0.4)]":"text-slate-300 hover:text-white hover:bg-slate-800/60"}`,children:l.label},l.id))}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("button",{onClick:()=>i("contact"),className:"hidden sm:inline-flex items-center gap-2 px-5 py-2.5 rounded-xl font-bold text-sm text-slate-900 bg-gradient-to-r from-cyan-400 via-teal-300 to-emerald-400 hover:opacity-95 transition-all shadow-[0_0_20px_rgba(0,240,255,0.3)] hover:shadow-[0_0_25px_rgba(0,240,255,0.5)] active:scale-95",children:[u.jsx("span",{children:"طلب استشارة"}),u.jsx(Ni,{className:"w-4 h-4"})]}),u.jsx("button",{onClick:()=>o(!r),className:"lg:hidden p-2 rounded-xl bg-slate-900 border border-slate-700 text-slate-200 hover:text-cyan-400 transition-colors","aria-label":"القائمة",children:r?u.jsx(Tm,{className:"w-6 h-6"}):u.jsx(Lx,{className:"w-6 h-6"})})]})]}),r&&u.jsxs("div",{className:"lg:hidden bg-[#0a1226]/98 border-b border-cyan-500/20 backdrop-blur-2xl px-4 pt-3 pb-6 space-y-2 animate-in slide-in-from-top-4 duration-200",children:[s.map(l=>u.jsxs("button",{onClick:()=>i(l.id),className:`w-full text-right px-4 py-3 rounded-xl text-base font-semibold flex items-center justify-between transition-all ${e===l.id?"bg-gradient-to-r from-cyan-500/20 to-blue-600/20 text-cyan-300 border border-cyan-500/40":"text-slate-200 hover:bg-slate-800/60"}`,children:[u.jsx("span",{children:l.label}),u.jsx(Ni,{className:"w-4 h-4 text-cyan-400"})]},l.id)),u.jsx("div",{className:"pt-3 border-t border-slate-800 flex flex-col gap-2.5",children:u.jsx("button",{onClick:()=>i("contact"),className:"w-full py-3 rounded-xl bg-gradient-to-r from-cyan-400 to-blue-500 text-slate-950 font-bold text-center shadow-lg",children:"تواصل معنا الآن"})})]})]})]})},cS=()=>{const e=r=>{var o;(o=document.getElementById(r))==null||o.scrollIntoView({behavior:"smooth"})},t=[{title:"التجارة العامة",desc:"General Trading",icon:Nm},{title:"الحلول التعليمية",desc:"Education & LMS",icon:ac},{title:"تقنية المعلومات",desc:"IT & Infrastructure",icon:Ix},{title:"الذكاء الاصطناعي",desc:"AI & Automation",icon:es}],n=[{number:"8+",label:"شركاء دوليون ومحليون"},{number:"7+",label:"مجالات وتخصصات متكاملة"},{number:"100%",label:"تغطية شاملة للقطاعين العام والخاص"},{number:"24/7",label:"دعم فني وبنية تحتية موثوقة"}];return u.jsxs("section",{id:"hero",className:"relative pt-8 pb-20 md:pt-16 md:pb-28 overflow-hidden bg-grid-pattern",children:[u.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-cyan-500/10 rounded-full blur-[140px] pointer-events-none"}),u.jsx("div",{className:"absolute top-1/3 right-10 w-[400px] h-[400px] bg-blue-600/10 rounded-full blur-[120px] pointer-events-none"}),u.jsx("div",{className:"absolute bottom-10 left-10 w-[350px] h-[350px] bg-emerald-500/10 rounded-full blur-[100px] pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 items-center",children:[u.jsxs("div",{className:"lg:col-span-7 space-y-6 text-right",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-slate-900/80 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold backdrop-blur-md shadow-[0_0_15px_rgba(0,240,255,0.15)]",children:[u.jsx(io,{className:"w-4 h-4 text-cyan-400 animate-pulse"}),u.jsx("span",{children:"شركة منار البرهان (MBX) — بغداد، العراق"})]}),u.jsxs("h1",{className:"text-3xl sm:text-5xl xl:text-6xl font-extrabold text-white leading-[1.25] tracking-tight",children:["تمكين المستقبل الرقمي للعراق ",u.jsx("br",{className:"hidden sm:block"}),u.jsx("span",{className:"text-gradient-mbx",children:"بحلول ذكية وبنية تحتية متطورة"})]}),u.jsx("p",{className:"text-slate-300 text-base sm:text-lg leading-relaxed max-w-2xl font-medium",children:"مزوّد رائد لحلول التكنولوجيا الشاملة في العراق. نربط بين الخبرات المحلية والشراكات العالمية لتقديم أنظمة الذكاء الاصطناعي، مراكز البيانات، الشبكات والأمن السيبراني، والتطبيقات الحديثة."}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 pt-2",children:t.map((r,o)=>{const s=r.icon;return u.jsxs("div",{className:"p-3 rounded-2xl glass-card border border-white/10 hover:border-cyan-500/40 transition-all flex flex-col items-start gap-2 group",children:[u.jsx("div",{className:"p-2 rounded-xl bg-cyan-500/10 text-cyan-400 group-hover:bg-cyan-400 group-hover:text-black transition-all",children:u.jsx(s,{className:"w-5 h-5"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-bold text-white",children:r.title}),u.jsx("div",{className:"text-[11px] text-slate-400",children:r.desc})]})]},o)})}),u.jsxs("div",{className:"flex flex-wrap items-center gap-4 pt-4",children:[u.jsxs("button",{onClick:()=>e("contact"),className:"px-8 py-4 rounded-xl bg-gradient-to-r from-cyan-400 via-teal-300 to-emerald-400 text-slate-950 font-bold text-base flex items-center gap-3 shadow-[0_0_25px_rgba(0,240,255,0.4)] hover:shadow-[0_0_35px_rgba(0,240,255,0.6)] transition-all hover:scale-[1.02] active:scale-95",children:[u.jsx("span",{children:"استكشف حلولنا الرقمية"}),u.jsx(Ex,{className:"w-5 h-5"})]}),u.jsx("button",{onClick:()=>e("about"),className:"px-7 py-4 rounded-xl bg-slate-900/80 border border-slate-700 hover:border-cyan-400/50 text-white font-semibold text-base flex items-center gap-2 hover:bg-slate-800/80 transition-all",children:u.jsx("span",{children:"نبذة عن الشركة"})})]}),u.jsxs("div",{className:"pt-4 flex flex-wrap items-center gap-6 text-xs sm:text-sm text-slate-400",children:[u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(ji,{className:"w-4 h-4 text-emerald-400"}),"حلول معتمدة للقطاع الحكومي والخاص"]}),u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(ji,{className:"w-4 h-4 text-cyan-400"}),"شراكات استراتيجية دولية"]})]})]}),u.jsx("div",{className:"lg:col-span-5 relative flex justify-center",children:u.jsxs("div",{className:"relative w-72 h-72 sm:w-96 sm:h-96 flex items-center justify-center",children:[u.jsx("div",{className:"absolute inset-0 rounded-full border border-cyan-500/20 animate-[spin_25s_linear_infinite]"}),u.jsx("div",{className:"absolute inset-4 rounded-full border border-dashed border-blue-500/30 animate-[spin_18s_linear_infinite_reverse]"}),u.jsx("div",{className:"absolute inset-10 rounded-full border border-emerald-500/20"}),u.jsx("div",{className:"absolute top-0 right-1/4 p-2 rounded-full bg-cyan-400 text-slate-950 shadow-[0_0_15px_#00f0ff] animate-bounce",children:u.jsx(es,{className:"w-4 h-4"})}),u.jsx("div",{className:"absolute bottom-6 left-6 p-2 rounded-full bg-blue-500 text-white shadow-[0_0_15px_#0066ff]",children:u.jsx(nl,{className:"w-4 h-4"})}),u.jsx("div",{className:"absolute top-1/2 -left-4 p-2 rounded-full bg-emerald-400 text-slate-950 shadow-[0_0_15px_#10b981]",children:u.jsx(jx,{className:"w-4 h-4"})}),u.jsxs("div",{className:"relative z-10 p-6 sm:p-8 rounded-3xl bg-[#091226]/90 border border-cyan-500/30 backdrop-blur-2xl shadow-[0_0_50px_rgba(0,240,255,0.25)] flex flex-col items-center text-center group",children:[u.jsxs("div",{className:"relative mb-4",children:[u.jsx("div",{className:"absolute -inset-4 bg-gradient-to-r from-cyan-500 to-blue-600 rounded-full opacity-30 blur-xl group-hover:opacity-60 transition duration-500"}),u.jsx("img",{src:Sc,alt:"Manar Al-Burhan MBX Logo",className:"h-32 sm:h-40 w-auto object-contain relative z-10 filter drop-shadow-[0_0_15px_rgba(0,240,255,0.5)]"})]}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("div",{className:"text-xl font-extrabold text-white tracking-wider",children:"MANAR AL-BARHAN"}),u.jsx("div",{className:"text-xs font-semibold text-cyan-400 tracking-widest uppercase",children:"MBX Technology Solutions"}),u.jsx("div",{className:"text-[11px] text-slate-400 pt-2 border-t border-slate-800/80",children:"اليرموك، بغداد • العراق"})]})]})]})})]}),u.jsx("div",{className:"mt-16 sm:mt-24 grid grid-cols-2 lg:grid-cols-4 gap-4 p-6 sm:p-8 rounded-3xl glass-card border border-cyan-500/20",children:n.map((r,o)=>u.jsxs("div",{className:"text-center p-3 border-l last:border-l-0 border-slate-800",children:[u.jsx("div",{className:"text-3xl sm:text-4xl font-extrabold text-gradient-mbx tracking-tight",children:r.number}),u.jsx("div",{className:"text-xs sm:text-sm text-slate-300 font-medium mt-1",children:r.label})]},o))})]})]})},dS=()=>{const e=[{title:"النزاهة والشفافية",desc:"الشفافية والمصداقية والممارسات الأخلاقية توجّه جميع تعاملاتنا مع عملائنا وشركائنا وموظفينا، بما يعزز الثقة ويبني علاقات طويلة الأمد.",icon:"⚖️"},{title:"الابتكار المستمر",desc:"نستكشف باستمرار أحدث التقنيات مثل الذكاء الاصطناعي والأتمتة الذكية ونوظّفها لتلبية الاحتياجات المتطورة للسوق العراقي.",icon:"💡"},{title:"التركيز على العميل",desc:"كل حل نقدمه مصمم خصيصاً لمواجهة التحديات الفريدة لعملائنا وتحقيق أهدافهم الاستراتيجية والتشغيلية.",icon:"🎯"},{title:"العمل بروح الفريق",desc:"نعمل بروح الفريق الواحد مع احترام التنوع، ونطوّر مواردنا البشرية في بيئة عمل محفزة للإبداع والتميز.",icon:"🤝"},{title:"التميز والجودة",desc:"نضع الجودة والأمن السيبراني في مقدمة أولوياتنا لتقديم حلول آمنة وفعالة تلبي أعلى المعايير الدولية.",icon:"🛡️"}];return u.jsxs("section",{id:"about",className:"py-20 relative bg-[#080d21] overflow-hidden",children:[u.jsx("div",{className:"absolute top-1/2 right-0 w-96 h-96 bg-cyan-500/10 rounded-full blur-[130px] pointer-events-none"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-blue-600/10 rounded-full blur-[130px] pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-4 mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold",children:[u.jsx(Nm,{className:"w-4 h-4 text-cyan-400"}),u.jsx("span",{children:"من نحن — شركة منار البرهان MBX"})]}),u.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white",children:["شريككم الموثوق لبناء"," ",u.jsx("span",{className:"text-gradient-mbx",children:"البنية التحتية الرقمية"})]}),u.jsx("p",{className:"text-slate-300 text-base leading-relaxed",children:"شركة منار البرهان (MBX) هي مزوّد رائد لحلول التكنولوجيا مقرّها بغداد، العراق، تكرّس جهودها لتمكين الشركات والجهات الحكومية من خلال بنية تحتية رقمية متطورة."})]}),u.jsx("div",{className:"p-8 sm:p-10 rounded-3xl glass-card border border-cyan-500/20 mb-16 relative overflow-hidden",children:u.jsxs("div",{className:"grid lg:grid-cols-12 gap-8 items-center",children:[u.jsxs("div",{className:"lg:col-span-8 space-y-4 text-right",children:[u.jsxs("h3",{className:"text-2xl font-bold text-white flex items-center gap-3",children:[u.jsx(io,{className:"w-6 h-6 text-cyan-400"}),u.jsx("span",{children:"رائدة في التكنولوجيا والذكاء الاصطناعي بالعراق"})]}),u.jsxs("p",{className:"text-slate-300 leading-relaxed text-base",children:["تعمل الشركة في مجالات"," ",u.jsx("strong",{className:"text-cyan-300",children:"التجارة العامة والحلول التعليمية وتقنية المعلومات والذكاء الاصطناعي"}),"، وتقدّم خدمات متكاملة تجسر الفجوة بين الأساليب التقليدية والقدرات الرقمية الحديثة."]}),u.jsx("p",{className:"text-slate-300 leading-relaxed text-base",children:"وبفضل خبرتها المحلية العميقة وشراكاتها الدولية القوية، تُعدّ منار البرهان شريكاً موثوقاً للمؤسسات الساعية إلى النجاح في عالم رقمي مترابط ومتسارع."})]}),u.jsxs("div",{className:"lg:col-span-4 bg-slate-900/90 p-6 rounded-2xl border border-slate-800 text-center space-y-3",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-cyan-500/20 text-cyan-400 flex items-center justify-center mx-auto text-2xl font-extrabold border border-cyan-500/30",children:"MBX"}),u.jsx("h4",{className:"text-lg font-bold text-white",children:"شركة منار البرهان"}),u.jsx("p",{className:"text-xs text-slate-400",children:"بغداد - اليرموك - العراق"}),u.jsx("div",{className:"pt-2 text-xs font-semibold text-emerald-400 bg-emerald-950/50 py-1.5 px-3 rounded-lg border border-emerald-500/30",children:"حلول رقمية متكاملة لجميع القطاعات"})]})]})}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-20",children:[u.jsxs("div",{className:"p-8 rounded-3xl glass-card glass-card-hover border border-cyan-500/20 relative group",children:[u.jsx("div",{className:"w-14 h-14 rounded-2xl bg-cyan-500/20 border border-cyan-500/40 text-cyan-400 flex items-center justify-center mb-6 group-hover:scale-110 transition-transform",children:u.jsx(Tx,{className:"w-7 h-7"})}),u.jsx("h3",{className:"text-2xl font-bold text-white mb-3",children:"رؤيتنا"}),u.jsx("p",{className:"text-slate-300 leading-relaxed text-base",children:"تسعى شركة منار البرهان إلى تمكين المستقبل الرقمي للعراق من خلال تقديم حلول تكنولوجية ذكية ومبتكرة ترتقي بمستوى الخدمات الرقمية وتدعم التحول الرقمي في مختلف القطاعات. نؤمن بأن التكنولوجيا هي المفتاح الأساسي لتطوير المجتمع وتعزيز النمو الاقتصادي، لذلك نلتزم بأن نكون الجسر الذي يربط بين الاحتياجات المحلية وأحدث التقنيات العالمية."})]}),u.jsxs("div",{className:"p-8 rounded-3xl glass-card glass-card-hover border border-blue-500/20 relative group",children:[u.jsx("div",{className:"w-14 h-14 rounded-2xl bg-blue-500/20 border border-blue-500/40 text-blue-400 flex items-center justify-center mb-6 group-hover:scale-110 transition-transform",children:u.jsx(Vx,{className:"w-7 h-7"})}),u.jsx("h3",{className:"text-2xl font-bold text-white mb-3",children:"رسالتنا"}),u.jsx("p",{className:"text-slate-300 leading-relaxed text-base",children:"تتمثل رسالتنا في توفير حلول تقنية متكاملة وموثوقة تلبي تطلعات عملائنا وتعزز قدراتهم التنافسية في السوق. نهدف إلى بناء شراكات استراتيجية مع المؤسسات المحلية والدولية لتطوير بيئة رقمية متتقدمة تدعم الابتكار وتساهم في بناء اقتصاد رقمي مستدام في العراق، عبر خدمات تمتد من تطوير التطبيقات للأتمتة والشبكات واستشارات التحول الرقمي."})]})]}),u.jsxs("div",{className:"space-y-10",children:[u.jsxs("div",{className:"text-center space-y-3",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 text-xs sm:text-sm font-semibold",children:[u.jsx(Cm,{className:"w-4 h-4 text-emerald-400"}),u.jsx("span",{children:"مبادؤنا وقيمنا المؤسسية"})]}),u.jsx("h3",{className:"text-3xl font-extrabold text-white",children:"القيم الأساسية التي توجّه مسيرتنا"})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((t,n)=>u.jsxs("div",{className:"p-6 rounded-2xl glass-card glass-card-hover border border-slate-800 hover:border-cyan-500/40 transition-all flex flex-col justify-between",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsx("div",{className:"text-3xl mb-2",children:t.icon}),u.jsx("h4",{className:"text-xl font-bold text-white text-gradient-silver",children:t.title}),u.jsx("p",{className:"text-slate-300 text-sm leading-relaxed",children:t.desc})]}),u.jsxs("div",{className:"pt-4 mt-4 border-t border-slate-800/80 flex items-center gap-2 text-xs text-cyan-400 font-medium",children:[u.jsx(ji,{className:"w-4 h-4"}),u.jsx("span",{children:"التزام راسخ بالجودة"})]})]},n))})]})]})]})},fS=()=>{const[e,t]=x.useState("services"),n=[{id:"app-dev",title:"تطوير تطبيقات الجوال والويب",category:"تطوير التطبيقات",icon:Ux,gradient:"from-cyan-500 to-blue-600",description:"تطبيقات مرنة وآمنة وسهلة الاستخدام مبنية بأحدث التقنيات لتعزيز تجربة المستخدم وكفاءة العمليات.",details:["تطبيقات هواتف iOS و Android أصلية ومشهورة","منصات ويب متكاملة وعالية الأداء","تصميم واجهات تجربة مستخدم UI/UX احترافية","تكامل مع قواعد البيانات وبوابات الدفع الإلكتروني"]},{id:"ai-auto",title:"تطبيقات الذكاء الاصطناعي والأتمتة الذكية",category:"الذكاء الاصطناعي والأتمتة",icon:es,gradient:"from-purple-500 to-indigo-600",description:"حلول تعلّم آلي وتحليلات بيانات تحسّن سير العمل وتقلل الجهد اليدوي وتدعم اتخاذ القرار المبني على البيانات.",details:["أنظمة التعلم الآلي Machine Learning المخصصة","أتمتة العمليات الإدارية والتشغيلية RPA","مراكز اتصال ذكية وخدمة عملاء متعددة القنوات","تحليلات تنبؤية ودعم صناعة القرار"]},{id:"data-centers",title:"مراكز البيانات — التشغيل والتجهيز والتركيب",category:"مراكز البيانات",icon:$x,gradient:"from-emerald-500 to-teal-600",description:"تصميم وتجهيز وتشغيل مراكز بيانات حديثة تدعم العمليات الحيوية للمؤسسات وفق المعايير العالمية.",details:["تصميم وتجهيز غرف السيرفرات ومراكز البيانات","أنظمة التبريد والطاقة الاحتياطية المتقدمة","تشغيل وإدارة مراكز البيانات Tier 3 & Tier 4","خدمات الصيانة والوقاية الدورية والمراقبة"]},{id:"networks-cyber",title:"البنية التحتية للشبكات والأمن السيبراني",category:"الشبكات والأمن السيبراني",icon:nl,gradient:"from-blue-500 to-cyan-500",description:"حلول شبكات متكاملة مع إجراءات أمن سيبراني متقدمة لحماية الأصول الرقمية وضمان استمرارية الأعمال.",details:["تخطيط وتنفيذ شبكات المؤسسات السلكية واللاسلكية","جدران الحماية Firewalls وأنظمة كشف الاختراق","تقييم الثغرات الأمنية واختبارات الاختراق","حماية البيانات الحساسة والتشفير المتقدم"]},{id:"digital-transform",title:"استشارات واستراتيجيات التحول الرقمي",category:"التحول الرقمي",icon:Cx,gradient:"from-amber-500 to-orange-600",description:"إرشاد المؤسسات خلال رحلة تبنّي التقنيات الحديثة وتحسين العمليات وتحقيق النمو المستدام.",details:["بناء خارطة طريق شاملة للتحول الرقمي","إعادة هيكلة وحوكمة الأصول الرقمية","إدارة التغيير وتدريب الكوادر المؤسسية","قياس كفاءة الأداء وتحسين الإنتاجية"]},{id:"erp-crm",title:"حلول تخطيط موارد المؤسسات (ERP/CRM)",category:"حلول ERP و CRM",icon:Ax,gradient:"from-rose-500 to-pink-600",description:"نشر وتكامل أنظمة مؤسسية شاملة تحسّن تخطيط الموارد والإدارة المالية والشفافية التشغيلية.",details:["أنظمة ERP للمالية، الموارد البشرية، والمخازن","إدارة علاقات العملاء CRM وزيادة المبيعات","ربط المبيعات والخدمات في لوحة قيادة موحدة","تخصيص النظام حسب متطلبات العمل العراقي"]}],r=[{title:"الذكاء الاصطناعي والتحول الرقمي",icon:es,scope:"الذكاء الاصطناعي، الأتمتة، مراكز الاتصال الذكية، إدارة علاقات العملاء (CRM)، وخدمة العملاء متعددة القنوات.",color:"border-cyan-500/40 text-cyan-400 bg-cyan-500/10"},{title:"حلول الاتصالات",icon:Dx,scope:"أنظمة OSS/BSS، البنية التحتية الرقمية، المدن الذكية، Telecom in a Box، ومنصة iZone (العراق).",color:"border-purple-500/40 text-purple-400 bg-purple-500/10"},{title:"تكنولوجيا المعلومات والبنية التحتية",icon:Ox,scope:"تكامل الأنظمة، الشبكات، مراكز البيانات، الأمن السيبراني، والحلول المؤسسية الشاملة.",color:"border-blue-500/40 text-blue-400 bg-blue-500/10"},{title:"الخدمات الهندسية",icon:Kx,scope:"الاستشارات الهندسية، تنفيذ المشاريع، الأعمال المدنية والكهربائية والميكانيكية، وإدارة المشاريع (PMO).",color:"border-emerald-500/40 text-emerald-400 bg-emerald-500/10"},{title:"التكنولوجيا المالية والدفع الإلكتروني",icon:Pm,scope:"الدفع الإلكتروني، المحافظ الإلكترونية، بوابات الدفع، وتكامل الأنظمة المالية والمصرفية.",color:"border-amber-500/40 text-amber-400 bg-amber-500/10"},{title:"التدريب وبناء القدرات",icon:ac,scope:"التدريب المؤسسي، التعليم الإلكتروني، تطوير المناهج، والاستشارات التعليمية لبناء قدرات الكوادر.",color:"border-rose-500/40 text-rose-400 bg-rose-500/10"},{title:"تكنولوجيا التعليم والتعليم الرقمي",icon:jm,scope:"إدارة أنظمة التعلم (LMS)، التحول الرقمي في قطاع التعليم، والمنصات التعليمية التفاعلية.",color:"border-indigo-500/40 text-indigo-400 bg-indigo-500/10"}];return u.jsxs("section",{id:"services",className:"py-20 bg-[#060b18] relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-60 pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-4 mb-12",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold",children:[u.jsx(io,{className:"w-4 h-4 text-cyan-400"}),u.jsx("span",{children:"خدماتنا ومنتجاتنا التقنية"})]}),u.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white",children:["منظومة متكاملة من"," ",u.jsx("span",{className:"text-gradient-mbx",children:"الحلول التكنولوجية والذكاء الاصطناعي"})]}),u.jsx("p",{className:"text-slate-300 text-base leading-relaxed",children:"نقدّم حلولاً مخصصة تلبّي متطلبات سوق العمل العراقي وتعزز كفاءة المؤسسات الحكومية والخاصة."}),u.jsxs("div",{className:"inline-flex p-1.5 rounded-2xl bg-slate-900 border border-slate-800 mt-6 shadow-xl",children:[u.jsx("button",{onClick:()=>t("services"),className:`px-6 py-2.5 rounded-xl font-bold text-sm transition-all duration-200 flex items-center gap-2 ${e==="services"?"bg-gradient-to-r from-cyan-400 to-blue-500 text-slate-950 shadow-lg":"text-slate-400 hover:text-white"}`,children:u.jsx("span",{children:"خدماتنا الرئيسية (6)"})}),u.jsx("button",{onClick:()=>t("products"),className:`px-6 py-2.5 rounded-xl font-bold text-sm transition-all duration-200 flex items-center gap-2 ${e==="products"?"bg-gradient-to-r from-cyan-400 to-blue-500 text-slate-950 shadow-lg":"text-slate-400 hover:text-white"}`,children:u.jsx("span",{children:"منتجاتنا وحلولنا القطاعية (7)"})})]})]}),e==="services"&&u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 animate-in fade-in duration-300",children:n.map(o=>{const s=o.icon;return u.jsxs("div",{className:"p-7 rounded-3xl glass-card glass-card-hover border border-cyan-500/20 flex flex-col justify-between group",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("div",{className:`p-3.5 rounded-2xl bg-gradient-to-br ${o.gradient} text-slate-950 shadow-lg group-hover:scale-110 transition-transform`,children:u.jsx(s,{className:"w-6 h-6"})}),u.jsx("span",{className:"text-xs font-bold text-cyan-400 bg-cyan-950/60 border border-cyan-500/30 px-3 py-1 rounded-full",children:o.category})]}),u.jsx("h3",{className:"text-xl font-bold text-white leading-snug group-hover:text-cyan-300 transition-colors",children:o.title}),u.jsx("p",{className:"text-slate-300 text-sm leading-relaxed",children:o.description}),u.jsx("div",{className:"space-y-2 pt-3 border-t border-slate-800/80",children:o.details.map((i,l)=>u.jsxs("div",{className:"flex items-start gap-2 text-xs text-slate-300",children:[u.jsx(Ka,{className:"w-4 h-4 text-emerald-400 shrink-0 mt-0.5"}),u.jsx("span",{children:i})]},l))})]}),u.jsxs("div",{className:"pt-6 mt-6 border-t border-slate-800/60 flex items-center justify-between",children:[u.jsxs("a",{href:"#contact",className:"text-xs font-bold text-cyan-400 hover:text-cyan-300 flex items-center gap-1.5 transition-colors",children:[u.jsx("span",{children:"طلب هذه الخدمة"}),u.jsx(Ni,{className:"w-4 h-4"})]}),u.jsx("span",{className:"text-[10px] text-slate-500 uppercase tracking-widest font-mono",children:"MBX SOL"})]})]},o.id)})}),e==="products"&&u.jsxs("div",{id:"solutions",className:"space-y-6 animate-in fade-in duration-300",children:[u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((o,s)=>{const i=o.icon;return u.jsxs("div",{className:"p-6 rounded-2xl glass-card border border-slate-800 hover:border-cyan-500/40 transition-all flex flex-col justify-between",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:`p-3 rounded-xl border ${o.color}`,children:u.jsx(i,{className:"w-6 h-6"})}),u.jsx("h3",{className:"text-lg font-bold text-white",children:o.title})]}),u.jsx("p",{className:"text-slate-300 text-sm leading-relaxed bg-slate-900/60 p-4 rounded-xl border border-slate-800",children:o.scope})]}),u.jsxs("div",{className:"pt-4 mt-4 flex items-center justify-between text-xs text-slate-400",children:[u.jsxs("span",{className:"flex items-center gap-1 text-emerald-400 font-medium",children:[u.jsx(Ka,{className:"w-3.5 h-3.5"}),"حلول جاهزة للتنفيذ"]}),u.jsxs("span",{className:"font-mono text-[11px] text-slate-500",children:["#0",s+1]})]})]},s)})}),u.jsxs("div",{className:"p-8 rounded-3xl bg-gradient-to-r from-blue-950/80 via-slate-900 to-cyan-950/80 border border-cyan-500/30 text-center space-y-4 shadow-2xl",children:[u.jsx("div",{className:"w-12 h-12 rounded-2xl bg-cyan-500/20 border border-cyan-500/40 text-cyan-300 flex items-center justify-center mx-auto text-xl",children:"🎓"}),u.jsx("h3",{className:"text-2xl font-bold text-white",children:"حلول التدريب وبناء القدرات والتعليم الرقمي في العراق"}),u.jsx("p",{className:"text-slate-300 max-w-3xl mx-auto text-sm sm:text-base leading-relaxed",children:"نقدّم منظومة متطورة تشمل إدارة أنظمة التعلم (LMS)، والتحول الرقمي في قطاع التعليم والجامعات، إلى جانب المناهج الرقمية والتدريب المؤسسي التخصصي للقطاعات الحكومية والخاصة."})]})]})]})]})},pS=()=>{const e=[{title:"خبرة عريقة واطلاع عميق بالسوق العراقي",desc:"ندمج بين المعرفة التقنية المتقدمة والخبرة المحلية اللوجستية لنقدم خدمات مخصصة تلبي تحديات البنية التحتية الرقمية وتضمن استمرارية العمل.",icon:tl},{title:"شراكات استراتيجية مع كبرى الشركات العالمية",desc:"نعتمد على شبكة شراكات موثوقة مع شركات عالمية ومحلية متخصصة في تكنولوجيا المعلومات والذكاء الاصطناعي لضمان توفير أحدث الحلول.",icon:Qx},{title:"حلول شاملة ومتكاملة من مكان واحد",desc:"من تطوير التطبيقات إلى مراكز البيانات والأمن السيبراني، نقدّم حلولاً متكاملة توفر الوقت والجهد وتضمن أعلى مستويات التوافق.",icon:Bx},{title:"دعم مستمر واستشارات متخصصة",desc:"فريقنا الهندسي والتقني متواجد بتقديم الدعم الفني والاستشارات المستمرة لتسريع التحول الرقمي وتحقيق الأهداف الاستراتيجية بكفاءة.",icon:Mx}];return u.jsx("section",{id:"why-us",className:"py-20 bg-[#080d21] relative overflow-hidden",children:u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:u.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 items-center",children:[u.jsxs("div",{className:"lg:col-span-6 space-y-6 text-right",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold",children:[u.jsx(Hx,{className:"w-4 h-4 text-cyan-400"}),u.jsx("span",{children:"لماذا تختار منار البرهان MBX"})]}),u.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white leading-snug",children:["الخيار الأول والموثوق للمؤسسات الباحثة عن"," ",u.jsx("span",{className:"text-gradient-mbx",children:"التميز الرقمي"})]}),u.jsx("p",{className:"text-slate-300 text-base leading-relaxed",children:"تتميز شركة منار البرهان بخبرتها العميقة في تقديم حلول تكنولوجية شاملة ومتكاملة تتناسب مع احتياجات السوق العراقي ومتطلبات العصر الرقمي. نحن نضمن أمان بياناتكم واستمرارية أعمالكم."}),u.jsx("div",{className:"space-y-4 pt-2",children:e.map((t,n)=>{const r=t.icon;return u.jsxs("div",{className:"p-4 rounded-2xl glass-card border border-slate-800 flex items-start gap-4 hover:border-cyan-500/30 transition-all",children:[u.jsx("div",{className:"p-3 rounded-xl bg-cyan-500/10 text-cyan-400 shrink-0",children:u.jsx(r,{className:"w-5 h-5"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-base font-bold text-white mb-1",children:t.title}),u.jsx("p",{className:"text-slate-300 text-xs sm:text-sm leading-relaxed",children:t.desc})]})]},n)})})]}),u.jsx("div",{className:"lg:col-span-6",children:u.jsxs("div",{className:"p-8 rounded-3xl glass-card border border-cyan-500/20 relative space-y-6",children:[u.jsxs("div",{className:"p-6 rounded-2xl bg-gradient-to-r from-cyan-950/60 to-blue-950/60 border border-cyan-500/30",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("span",{className:"text-xs font-bold text-cyan-400 uppercase tracking-widest",children:"معايير الجودة والتميز"}),u.jsx(io,{className:"w-5 h-5 text-cyan-400"})]}),u.jsx("p",{className:"text-lg font-bold text-white leading-relaxed",children:'"نضع الجودة والأمن السيبراني في مقدمة أولوياتنا لتقديم حلول آمنة وفعالة تلبي أعلى المعايير الدولية"'})]}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:["تغطية شاملة لمختلف قطاعات العراق","أنظمة أمان وبنية تحتية عالية التوافر","تكامل سلس مع الأنظمة القائمة","التزام تام بأخلاقيات الممارسة والنزاهة","استشارات تحول رقمي مبنية على البيانات","دعم وتدريب مستمر للكوادر الوطنية"].map((t,n)=>u.jsxs("div",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/80 border border-slate-800 text-slate-200 text-xs font-semibold",children:[u.jsx("div",{className:"w-5 h-5 rounded-full bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0",children:u.jsx(Ka,{className:"w-3.5 h-3.5"})}),u.jsx("span",{children:t})]},n))}),u.jsxs("div",{className:"pt-4 border-t border-slate-800 flex items-center justify-between text-xs text-slate-400",children:[u.jsx("span",{className:"text-cyan-400 font-semibold",children:"بغداد • السليمانية • كندا • المملكة المتحدة"}),u.jsx("span",{className:"font-mono",children:"MBX IRAQ"})]})]})})]})})})},hS=()=>{const e=[{name:"Alfai",country:"المملكة المتحدة",flag:"🇬🇧",role:"شريك الاستشارات والحلول التكنولوجية بريطانيا",icon:es,color:"from-blue-600 to-indigo-700",badge:"UK Partner"},{name:"بلاك ستار العراق لتكنولوجيا المعلومات والذكاء الاصطناعي",country:"العراق",flag:"🇮🇶",role:"الذكاء الاصطناعي والبنية التحتية البرمجية",icon:t,color:"from-emerald-600 to-teal-700",badge:"Iraq Tech"},{name:"NTG",country:"كندا",flag:"🇨🇦",role:"حلول الاتصالات والبنية التحتية الرقمية",icon:Px,color:"from-red-600 to-rose-700",badge:"Canada Partner"},{name:"شركة معايير الجودة للتقييس والسيطرة النوعية والتجارة العامة",country:"العراق",flag:"🇮🇶",role:"السيطرة النوعية ومعايير التجارة العامة",icon:Cm,color:"from-amber-600 to-yellow-600",badge:"Quality Control"},{name:"شركة هامسا للتقييس والسيطرة وتكنولوجيا المعلومات",country:"السليمانية وبغداد - العراق",flag:"🇮🇶",role:"تكنولوجيا المعلومات والتقييس والسيطرة النوعية",icon:nl,color:"from-cyan-600 to-blue-700",badge:"Sulaymaniyah & Baghdad"},{name:"شركة نيوتن للتدريب وخدمات التعليم المحدودة",country:"العراق",flag:"🇮🇶",role:"التدريب الرقمي وخدمات التعليم المتقدم",icon:ac,color:"from-purple-600 to-indigo-800",badge:"Education & LMS"},{name:"بوابة النقد الفوري (icash)",country:"العراق",flag:"🇮🇶",role:"الدفع الإلكتروني والتكنولوجيا المالية FinTech",icon:Pm,color:"from-teal-500 to-emerald-700",badge:"Electronic Payment"},{name:"النخبة الهندسية",country:"العراق",flag:"🇮🇶",role:"الاستشارات والأعمال الهندسية وإدارة المشاريع",icon:jm,color:"from-slate-600 to-slate-800",badge:"Engineering Elite"}];function t(n){return u.jsx("svg",{...n,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}return u.jsxs("section",{id:"partners",className:"py-20 bg-[#060b18] relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-1/4 w-80 h-80 bg-cyan-500/10 rounded-full blur-[120px] pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-4 mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold",children:[u.jsx(_x,{className:"w-4 h-4 text-cyan-400"}),u.jsx("span",{children:"شركاؤنا الاستراتيجيون"})]}),u.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white",children:["شبكة من"," ",u.jsx("span",{className:"text-gradient-mbx",children:"الشركاء المحليين والدوليين الموثوقين"})]}),u.jsx("p",{className:"text-slate-300 text-base leading-relaxed",children:"تتعاون شركة منار البرهان مع أفضل الخبرات والشركات العالمية والمحلية في المملكة المتحدة وكندا والعراق لتقديم أعلى مستويات الأداء."})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((n,r)=>{const o=n.icon;return u.jsxs("div",{className:"p-6 rounded-3xl glass-card glass-card-hover border border-slate-800 hover:border-cyan-500/40 flex flex-col justify-between group relative overflow-hidden",children:[u.jsx("div",{className:`absolute top-0 left-0 right-0 h-1.5 bg-gradient-to-r ${n.color}`}),u.jsxs("div",{className:"space-y-4 pt-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[11px] font-bold text-cyan-300 bg-cyan-950/80 border border-cyan-500/30 px-2.5 py-0.5 rounded-full",children:n.badge}),u.jsx("span",{className:"text-2xl",title:n.country,children:n.flag})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:`p-3.5 rounded-2xl bg-gradient-to-br ${n.color} text-white shadow-md group-hover:scale-110 transition-transform shrink-0`,children:u.jsx(o,{className:"w-6 h-6"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-base font-bold text-white leading-snug group-hover:text-cyan-300 transition-colors",children:n.name}),u.jsx("p",{className:"text-xs text-slate-400 font-medium mt-0.5",children:n.country})]})]}),u.jsx("p",{className:"text-xs text-slate-300 leading-relaxed bg-slate-900/60 p-3 rounded-xl border border-slate-800/80",children:n.role})]}),u.jsxs("div",{className:"pt-3 mt-3 border-t border-slate-800/60 flex items-center justify-between text-[11px] text-slate-400",children:[u.jsx("span",{className:"flex items-center gap-1 text-emerald-400 font-semibold",children:"شراكة موثوقة"}),u.jsx("span",{className:"font-mono text-slate-500",children:"MBX PARTNER"})]})]},r)})}),u.jsxs("div",{className:"mt-12 p-6 rounded-2xl glass-card border border-cyan-500/20 flex flex-col sm:flex-row items-center justify-between gap-4 text-center sm:text-right",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("h4",{className:"text-base font-bold text-white",children:"هل ترغب في الانضمام لشراكاتنا؟"}),u.jsx("p",{className:"text-xs text-slate-300",children:"نرحب بالتعاون مع الشركات التكنولوجية لتطوير البيئة الرقمية في العراق."})]}),u.jsx("a",{href:"#contact",className:"px-6 py-2.5 rounded-xl bg-cyan-500/20 hover:bg-cyan-500/30 text-cyan-300 border border-cyan-500/40 text-xs font-bold transition-all shrink-0",children:"تواصل مع قسم الشراكات"})]})]})]})},mS=()=>{const[e,t]=x.useState({name:"",email:"",phone:"",service:"ذكاء اصطناعي وأتمتة",message:""}),[n,r]=x.useState(!1),o=i=>{i.preventDefault(),r(!0),setTimeout(()=>{r(!1),G1.success("تم إرسال رسالتكم بنجاح! سيتواصل معكم فريق شركة منار البرهان في أقرب وقت."),t({name:"",email:"",phone:"",service:"ذكاء اصطناعي وأتمتة",message:""})},1e3)},s=[{icon:uc,title:"العنوان الرئيسي",value:"اليرموك، بغداد، العراق",sub:"المقر الرئيسي لشركة منار البرهان MBX",color:"from-cyan-500 to-blue-600",action:null},{icon:Pi,title:"البريد الإلكتروني العام",value:"info@manarburhan.iq",sub:"لاستفسارات الخدمات والعروض الفنية",color:"from-blue-600 to-indigo-600",action:"mailto:info@manarburhan.iq"},{icon:tl,title:"الموقع الإلكتروني",value:"www.manarburhan.iq",sub:"البوابة الرسمية لخدماتنا الرقمية",color:"from-teal-400 to-cyan-600",action:"http://www.manarburhan.iq"}];return u.jsxs("section",{id:"contact",className:"py-20 bg-[#040814] relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-1/3 left-0 w-96 h-96 bg-cyan-500/10 rounded-full blur-[140px] pointer-events-none"}),u.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-blue-600/10 rounded-full blur-[140px] pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-4 mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/30 text-cyan-300 text-xs sm:text-sm font-semibold",children:[u.jsx(Kd,{className:"w-4 h-4 text-cyan-400"}),u.jsx("span",{children:"تواصل معنا — شركة منار البرهان"})]}),u.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white",children:["جاهزون لتسريع"," ",u.jsx("span",{className:"text-gradient-mbx",children:"رحلتكم نحو التحول الرقمي"})]}),u.jsx("p",{className:"text-slate-300 text-base leading-relaxed",children:"تواصل مع فريق مستشارينا في بغداد للحصول على استشارة متخصصة، أو مناقشة تلبية متطلبات البنية التحتية والحلول الذكية لمؤسستك."})]}),u.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 items-start",children:[u.jsxs("div",{className:"lg:col-span-5 space-y-4",children:[u.jsxs("div",{className:"p-6 rounded-3xl glass-card border border-cyan-500/20 mb-6",children:[u.jsxs("h3",{className:"text-xl font-bold text-white mb-2 flex items-center gap-2",children:[u.jsx(io,{className:"w-5 h-5 text-cyan-400"}),u.jsx("span",{children:"معلومات الاتصال المباشر"})]}),u.jsx("p",{className:"text-xs text-slate-300 leading-relaxed",children:"يسعدنا استقبال استفساراتكم والرد عليها بكفاءة عالية عبر قنوات التواصل المعتمدة."})]}),s.map((i,l)=>{const a=i.icon,c=u.jsxs("div",{className:"p-5 rounded-2xl glass-card glass-card-hover border border-slate-800 hover:border-cyan-500/40 transition-all flex items-start gap-4 group",children:[u.jsx("div",{className:`p-3.5 rounded-2xl bg-gradient-to-br ${i.color} text-white shadow-lg shrink-0 group-hover:scale-110 transition-transform`,children:u.jsx(a,{className:"w-6 h-6"})}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("div",{className:"text-xs text-slate-400 font-medium",children:i.title}),u.jsx("div",{className:"text-base font-bold text-white group-hover:text-cyan-300 transition-colors",children:i.value}),u.jsx("div",{className:"text-[11px] text-slate-400",children:i.sub})]})]});return i.action?u.jsx("a",{href:i.action,target:i.action.startsWith("http")?"_blank":void 0,rel:"noreferrer",className:"block",children:c},l):u.jsx("div",{children:c},l)}),u.jsxs("div",{className:"p-5 rounded-2xl bg-emerald-950/40 border border-emerald-500/30 flex items-center gap-3 text-xs text-emerald-300",children:[u.jsx(Nx,{className:"w-5 h-5 text-emerald-400 shrink-0"}),u.jsx("span",{children:"أوقات العمل: الأحد — الخميس (8:00 صباحاً - 4:00 مساءً بتوقيت بغداد)"})]})]}),u.jsx("div",{className:"lg:col-span-7",children:u.jsxs("div",{className:"p-8 sm:p-10 rounded-3xl glass-card border border-cyan-500/30 relative overflow-hidden shadow-2xl",children:[u.jsxs("div",{className:"space-y-2 mb-8",children:[u.jsx("h3",{className:"text-2xl font-bold text-white flex items-center gap-2",children:u.jsx("span",{children:"أرسل لنا استفسارك أو طلب استشارة"})}),u.jsx("p",{className:"text-sm text-slate-300",children:"قم بملء النموذج أدناه وسيقوم أحد مهندسينا أو مستشارينا بالتواصل معكم مباشرة."})]}),u.jsxs("form",{onSubmit:o,className:"space-y-5",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-xs font-bold text-slate-200 flex items-center gap-1.5",children:[u.jsx(Wx,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"الاسم الكامل"})]}),u.jsx("input",{type:"text",required:!0,placeholder:"مثال: د. علي المحمداوي",value:e.name,onChange:i=>t({...e,name:i.target.value}),className:"w-full px-4 py-3 rounded-xl bg-slate-900/90 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 transition-all"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-xs font-bold text-slate-200 flex items-center gap-1.5",children:[u.jsx(zx,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"رقم الهاتف / الواتساب"})]}),u.jsx("input",{type:"tel",required:!0,placeholder:"+964 780 000 0000",value:e.phone,onChange:i=>t({...e,phone:i.target.value}),className:"w-full px-4 py-3 rounded-xl bg-slate-900/90 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 transition-all dir-ltr text-right"})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-xs font-bold text-slate-200 flex items-center gap-1.5",children:[u.jsx(Pi,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"البريد الإلكتروني"})]}),u.jsx("input",{type:"email",required:!0,placeholder:"name@example.com",value:e.email,onChange:i=>t({...e,email:i.target.value}),className:"w-full px-4 py-3 rounded-xl bg-slate-900/90 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 transition-all"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-xs font-bold text-slate-200 flex items-center gap-1.5",children:[u.jsx(Rx,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"نوع الخدمة أو المجال المطلوب"})]}),u.jsxs("select",{value:e.service,onChange:i=>t({...e,service:i.target.value}),className:"w-full px-4 py-3 rounded-xl bg-slate-900/90 border border-slate-700 text-white text-sm focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 transition-all",children:[u.jsx("option",{value:"ذكاء اصطناعي وأتمتة",children:"تطبيقات الذكاء الاصطناعي والأتمتة"}),u.jsx("option",{value:"تطوير الويب والجوال",children:"تطوير تطبيقات الجوال والويب"}),u.jsx("option",{value:"مراكز البيانات",children:"مراكز البيانات — تجهيز وتركيب"}),u.jsx("option",{value:"الشبكات والأمن السيبراني",children:"البنية التحتية للشبكات والأمن السيبراني"}),u.jsx("option",{value:"ERP / CRM",children:"حلول ERP و CRM وإدارة علاقات العملاء"}),u.jsx("option",{value:"التحول الرقمي",children:"استشارات التحول الرقمي"}),u.jsx("option",{value:"تكنولوجيا التعليم LMS",children:"حلول التعليم الرقمي وبناء القدرات"}),u.jsx("option",{value:"التجارة العامة",children:"استفسارات التجارة العامة والحلول الهندسية"})]})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("label",{className:"text-xs font-bold text-slate-200 flex items-center gap-1.5",children:[u.jsx(Kd,{className:"w-3.5 h-3.5 text-cyan-400"}),u.jsx("span",{children:"تفاصيل الرسالة أو المشروع"})]}),u.jsx("textarea",{rows:4,required:!0,placeholder:"اكتب تفاصيل استفسارك أو المتطلبات الخاصة بمؤسستك هنا...",value:e.message,onChange:i=>t({...e,message:i.target.value}),className:"w-full px-4 py-3 rounded-xl bg-slate-900/90 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 transition-all resize-none"})]}),u.jsx("button",{type:"submit",disabled:n,className:"w-full py-4 rounded-xl bg-gradient-to-r from-cyan-400 via-teal-300 to-emerald-400 text-slate-950 font-bold text-base flex items-center justify-center gap-2 shadow-[0_0_25px_rgba(0,240,255,0.4)] hover:shadow-[0_0_35px_rgba(0,240,255,0.6)] transition-all active:scale-[0.98] disabled:opacity-50",children:n?u.jsx("span",{children:"جاري إرسال الرسالة..."}):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:"إرسال الرسالة الآن"}),u.jsx(Fx,{className:"w-5 h-5"})]})}),u.jsxs("div",{className:"flex items-center justify-center gap-2 text-xs text-slate-400 pt-2",children:[u.jsx(ji,{className:"w-4 h-4 text-emerald-400"}),u.jsx("span",{children:"نحافظ على سرية وأمان كامل معلوماتك وبيانات مؤسستك"})]})]})]})})]})]})]})},gS=()=>{const e=()=>{window.scrollTo({top:0,behavior:"smooth"})},t=n=>{var r;(r=document.getElementById(n))==null||r.scrollIntoView({behavior:"smooth"})};return u.jsxs("footer",{className:"bg-[#03060f] border-t border-cyan-500/20 text-slate-300 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-1 bg-gradient-to-r from-transparent via-cyan-500/50 to-transparent"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 bg-cyan-500/5 rounded-full blur-[100px] pointer-events-none"}),u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-16 pb-8 relative z-10",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-12 gap-10 pb-12 border-b border-slate-800/80",children:[u.jsxs("div",{className:"lg:col-span-4 space-y-5",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-1 rounded-xl bg-gradient-to-br from-cyan-500/20 to-blue-600/20 border border-cyan-500/30 overflow-hidden",children:u.jsx("img",{src:Sc,alt:"شركة منار البرهان MBX Logo",className:"h-12 w-auto object-contain filter drop-shadow-[0_0_8px_rgba(0,240,255,0.4)]"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"text-xl font-extrabold text-white",children:["منار البرهان ",u.jsx("span",{className:"text-cyan-400",children:"MBX"})]}),u.jsx("div",{className:"text-xs text-slate-400 font-medium",children:"Manar Al-Burhan Co."})]})]}),u.jsx("p",{className:"text-sm text-slate-400 leading-relaxed",children:"شركة منار البرهان (MBX) هي مزوّد رائد لحلول التكنولوجيا والتجارة العامة والذكاء الاصطناعي وتقنية المعلومات والحلول التعليمية في العراق."}),u.jsxs("div",{className:"pt-2 flex items-center gap-3 text-xs text-slate-300",children:[u.jsx("span",{className:"p-1.5 rounded-lg bg-cyan-500/10 border border-cyan-500/20 text-cyan-400",children:u.jsx(nl,{className:"w-4 h-4"})}),u.jsx("span",{children:"تمكين المستقبل الرقمي للعراق بحلول ذكية"})]})]}),u.jsxs("div",{className:"lg:col-span-3 space-y-4",children:[u.jsxs("h4",{className:"text-base font-bold text-white flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-cyan-400"}),u.jsx("span",{children:"روابط سريعة"})]}),u.jsx("ul",{className:"space-y-2.5 text-sm",children:[{id:"hero",label:"الرئيسية"},{id:"about",label:"من نحن والرؤية"},{id:"services",label:"خدماتنا التقنية"},{id:"solutions",label:"منتجاتنا وحلولنا"},{id:"why-us",label:"لماذا منار البرهان"},{id:"partners",label:"شركاؤنا الدوليون"},{id:"contact",label:"اتصل بنا"}].map((n,r)=>u.jsx("li",{children:u.jsxs("button",{onClick:()=>t(n.id),className:"hover:text-cyan-400 transition-colors flex items-center gap-1.5 text-slate-300",children:[u.jsx(Ni,{className:"w-3.5 h-3.5 text-cyan-500"}),u.jsx("span",{children:n.label})]})},r))})]}),u.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[u.jsxs("h4",{className:"text-base font-bold text-white flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500"}),u.jsx("span",{children:"مجالات عملنا"})]}),u.jsxs("ul",{className:"space-y-2 text-xs text-slate-400",children:[u.jsx("li",{className:"p-2 rounded-lg bg-slate-900/60 border border-slate-800",children:"التجارة العامة"}),u.jsx("li",{className:"p-2 rounded-lg bg-slate-900/60 border border-slate-800",children:"الحلول التعليمية (LMS)"}),u.jsx("li",{className:"p-2 rounded-lg bg-slate-900/60 border border-slate-800",children:"تقنية المعلومات والشبكات"}),u.jsx("li",{className:"p-2 rounded-lg bg-slate-900/60 border border-slate-800",children:"الذكاء الاصطناعي والأتمتة"}),u.jsx("li",{className:"p-2 rounded-lg bg-slate-900/60 border border-slate-800",children:"تجهيز مراكز البيانات"})]})]}),u.jsxs("div",{className:"lg:col-span-3 space-y-4",children:[u.jsxs("h4",{className:"text-base font-bold text-white flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400"}),u.jsx("span",{children:"معلومات التواصل"})]}),u.jsxs("div",{className:"space-y-3 text-xs",children:[u.jsxs("div",{className:"flex items-start gap-2.5",children:[u.jsx(uc,{className:"w-4 h-4 text-emerald-400 shrink-0 mt-0.5"}),u.jsx("span",{children:"اليرموك، بغداد، العراق"})]}),u.jsxs("a",{href:"mailto:info@manarburhan.iq",className:"flex items-center gap-2.5 hover:text-cyan-400 transition-colors",children:[u.jsx(Pi,{className:"w-4 h-4 text-cyan-400 shrink-0"}),u.jsx("span",{children:"info@manarburhan.iq"})]}),u.jsxs("a",{href:"http://www.manarburhan.iq",target:"_blank",rel:"noreferrer",className:"flex items-center gap-2.5 hover:text-cyan-400 transition-colors",children:[u.jsx(tl,{className:"w-4 h-4 text-cyan-400 shrink-0"}),u.jsx("span",{children:"www.manarburhan.iq"})]})]})]})]}),u.jsxs("div",{className:"pt-8 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-slate-500",children:[u.jsxs("p",{children:["© ",new Date().getFullYear()," شركة منار البرهان (MBX). جميع الحقوق محفوظة."]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("span",{className:"text-slate-400 flex items-center gap-1",children:"مصمم بأسلوب عصري للشركة"}),u.jsx("button",{onClick:e,className:"p-2.5 rounded-xl bg-slate-900 border border-slate-800 text-cyan-400 hover:bg-cyan-500 hover:text-slate-950 transition-all",title:"أعلى الصفحة",children:u.jsx(kx,{className:"w-4 h-4"})})]})]})]})]})},vS=()=>{const[e,t]=x.useState("hero");return x.useEffect(()=>{const n=()=>{const r=["hero","about","services","solutions","why-us","partners","contact"],o=window.scrollY+200;for(const s of r){const i=document.getElementById(s);if(i){const l=i.offsetTop,a=i.offsetHeight;if(o>=l&&owindow.removeEventListener("scroll",n)},[]),u.jsxs("div",{className:"min-h-screen bg-[#060b18] text-slate-100 font-cairo selection:bg-cyan-500 selection:text-black",children:[u.jsx(uS,{activeSection:e}),u.jsxs("main",{children:[u.jsx(cS,{}),u.jsx(dS,{}),u.jsx(fS,{}),u.jsx(pS,{}),u.jsx(hS,{}),u.jsx(mS,{})]}),u.jsx(gS,{})]})},yS=()=>{const e=M0();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},xS=new xb,wS=()=>u.jsx(bb,{client:xS,children:u.jsxs(V2,{children:[u.jsx(T1,{}),u.jsx(aw,{}),u.jsx(aS,{children:u.jsxs(sS,{children:[u.jsx(su,{path:"/",element:u.jsx(vS,{})}),u.jsx(su,{path:"*",element:u.jsx(yS,{})})]})})]})});Xh(document.getElementById("root")).render(u.jsx(wS,{}));